Agar Anda tidak perlu mencari spesifikasi setiap kali, kami mengumpulkan kode status yang paling sering ditemui dalam praktik berdasarkan kelas. Mengeklik setiap kode pada daftar di bawah akan membawa Anda ke halaman detail yang memuat makna, kapan terjadi, penyebab, dan cara mengatasinya.
Kriteria cepat: 2xx berarti berhasil, 3xx berarti perpindahan (pengalihan), 4xx berarti masalah permintaan (klien), dan 5xx berarti masalah server. Jika Anda melihat 4xx, periksa dulu URL permintaan, header, dan autentikasi; jika melihat 5xx, periksa dulu log server dan status backend.
Kode status yang sering dipakai sekilas
2xxSukses (Success)
3xxPengalihan (Redirection)
4xxKesalahan Klien (Client Error)
400Bad Request SeringThe server cannot process the request due to a client error such as malformed syntax.401Unauthorized SeringAuthentication is required and has failed or not been provided (i.e. unauthenticated).403Forbidden SeringThe server understood the request but refuses to authorize it. Re-authenticating will not help.404Not Found SeringThe server cannot find the requested resource. The most well-known status code.405Method Not Allowed SeringThe HTTP method is known but not supported for the target resource.409Conflict SeringThe request conflicts with the current state of the resource.422Unprocessable Content SeringThe request is well-formed but has semantic errors (e.g. validation failed).429Too Many Requests SeringThe client has sent too many requests in a given time (rate limiting).
5xxKesalahan Server (Server Error)
500Internal Server Error SeringA generic catch-all: the server hit an unexpected condition and could not complete the request.502Bad Gateway SeringA gateway or proxy received an invalid response from an upstream server.503Service Unavailable SeringThe server is temporarily unable to handle the request due to overload or maintenance.504Gateway Timeout SeringA gateway or proxy did not get a timely response from an upstream server.