Daftar kode status HTTP

HTTP memiliki beberapa kode status yang akan muncul apabila ada kejadian yang sesuai dan tidak semuanya tentang error kok. Nanti bisa dibedakan dengan mudah dari angka awalnya dan ini akan membantu kita melakukan diagnosa dimana letak masalahnya, di klien atau server.

Saya format dalam bentuk tabel supaya mudah dibaca.

1xx Informational
100 Continue
101 Switching Protocols
102 Processing
103 Checkpoint
122 Request-URI too long
2xx Success
200 OK
201 Created
202 Accepted
203 Non-Au­tho­rit­ative Inform­ation
204 No Content
205 Reset Content
206 Partial Content
207 Multi­Status
208 Already Reported
226 IM Used
3xx Redirection
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
305 Use Proxy
306 Switch Proxy
307 Temporary Redirect
308 Resume Incomplete

4xx Client Error
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Request Entity Too Large
414 Reques­t-URI Too Long
415 Unsupported Media Type
416 Requested Range Not Satisfiable
417 Expectation Failed
418 I’m a teapot
420 Twitter Rate Limiting
422 Unprocessable Entity
423 Locked
424 Failed Dependency
425 Unordered Collection
426 Upgrade Required
428 Precondition Required
429 Too Many Requests
431 Request Header Fields Too Large
444 No Response
449 Retry With
450 Blocked By Windows Parental Controls
451 Unavai­lable For Legal Reasons
499 Client Closed Request
5xx Server Error
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
506 Variant Also Negotiates
507 Insufficient Storage
508 Loop Detected WebDAV
509 Bandwidth Limit Exceeded
510 Not Extended
511 Network Authentication Required
598 Network read timeout error
599 Network connect timeout error

Sedikit penjelasan umum mengenai angka – angka dalam HTTP status code diatas mewakili apa:

  • 1xx berarti ini kode untuk informasi status koneksi HTTP.
  • 2xx maksudnya berhasil tersambung menggunakan HTTP.
  • 3xx adalah jika ada pengalihan URL atau konten ke lokasi lain.
  • 4xx merupakan error yang dialami pada klien/pengguna.
  • 5xx artinya terjadi kesalahan dari server.

Semoga bermanfaat. 🙂

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *