Memahami Kode Status HTTP dengan Mudah
Membaca dan Memahami Kode Status HTTP

A software engineer, coding instructor, and creator of Mongoloquent ORM. Active in communities and contribute to open-source projects.
Apa dan untuk apa kode status HTTP itu?
1XX - Informasi
Menunjukan hanya satu informasi:
Contoh:
100 - Continue
102 - Processing
2XX - Sukses
Menunjukan request yang berhasil.
Contoh:
200 - OK
201 - Created
202 - Accepted
3XX - Pengalihan
Menunjukkan penggilan ulang.
Contoh:
301 - Moved permanently
308 - Permanent Redirect
4XX - Error Client
Menunjukan error pada sisi client. Sebuah contoh yang kita pernah temui adalah ketika kita memasukan
URLyang salah.
Contoh:
400 - Bad Request
401 - Unautorized
403 - Forbidden
404 - Not Found
5XX - Error Server
Menunjukan sebuah error pada sisi server.
Contoh:
500 - Internal server Error
501 - Bad Gateway
502 - Service Unavailable
Sumber:




