🛠️ToolsShed

Referensi Kode Status HTTP

Cari kode status HTTP dengan deskripsi, kasus penggunaan, dan contoh.

100
Continue1xx

The server has received the request headers and the client should proceed to send the request body.

Kasus penggunaan: Used in POST requests with large bodies; client checks if server will accept before sending.

101
Switching Protocols1xx

The server agrees to switch protocols as requested by the client.

Kasus penggunaan: WebSocket upgrade from HTTP to WS protocol.

102
Processing1xx

The server has received and is processing the request, but no response is available yet.

Kasus penggunaan: Long-running operations to prevent client timeout.

103
Early Hints1xx

Used to return some response headers before final HTTP message.

Kasus penggunaan: Preloading resources before the main response is ready.

200
OK2xx

The request succeeded. The meaning depends on the HTTP method used.

Kasus penggunaan: Standard success response for GET, POST, PUT requests.

201
Created2xx

The request succeeded and a new resource was created as a result.

Kasus penggunaan: Returned after a successful POST that creates a new resource.

202
Accepted2xx

The request has been accepted for processing, but processing has not been completed.

Kasus penggunaan: Async operations where processing happens in background.

204
No Content2xx

The server successfully processed the request and is not returning any content.

Kasus penggunaan: DELETE requests, or PUT/PATCH with no response body needed.

206
Partial Content2xx

The server is delivering only part of the resource due to a Range header sent by the client.

Kasus penggunaan: Video streaming, resumable file downloads.

301
Moved Permanently3xx

The requested resource has been permanently moved to a new URL.

Kasus penggunaan: Permanent redirects; SEO-friendly for URL changes.

302
Found3xx

The resource is temporarily under a different URI.

Kasus penggunaan: Temporary redirects, login redirects.

304
Not Modified3xx

The resource has not been modified since the last request.

Kasus penggunaan: Browser caching; server confirms cached version is still valid.

307
Temporary Redirect3xx

The request should be repeated with another URI but future requests can still use the original URI.

Kasus penggunaan: Temporary redirect that preserves the HTTP method.

308
Permanent Redirect3xx

The request and all future requests should be repeated using another URI.

Kasus penggunaan: Permanent redirect that preserves the HTTP method.

400
Bad Request4xx

The server could not understand the request due to invalid syntax.

Kasus penggunaan: Malformed JSON, missing required fields, invalid parameters.

401
Unauthorized4xx

The client must authenticate itself to get the requested response.

Kasus penggunaan: Missing or invalid authentication token.

403
Forbidden4xx

The client does not have access rights to the content.

Kasus penggunaan: Authenticated but not authorized; access denied to resource.

404
Not Found4xx

The server can not find the requested resource.

Kasus penggunaan: Invalid URL, deleted resource, or hidden resource.

405
Method Not Allowed4xx

The request method is known by the server but is not supported by the target resource.

Kasus penggunaan: POST to a read-only endpoint, DELETE on non-deletable resource.

408
Request Timeout4xx

The server would like to shut down this unused connection.

Kasus penggunaan: Client took too long to send a complete request.

409
Conflict4xx

The request conflicts with the current state of the server.

Kasus penggunaan: Duplicate resource creation, version conflicts.

410
Gone4xx

The requested content has been permanently deleted from the server.

Kasus penggunaan: Deliberately removed resources; stronger signal than 404.

422
Unprocessable Entity4xx

The request was well-formed but was unable to be followed due to semantic errors.

Kasus penggunaan: Validation errors — correct format but invalid data.

429
Too Many Requests4xx

The user has sent too many requests in a given amount of time (rate limiting).

Kasus penggunaan: API rate limiting, DDoS protection.

500
Internal Server Error5xx

The server encountered an unexpected condition that prevented it from fulfilling the request.

Kasus penggunaan: Unhandled exceptions, server-side bugs.

501
Not Implemented5xx

The server does not support the functionality required to fulfill the request.

Kasus penggunaan: HTTP method not recognized or supported by server.

502
Bad Gateway5xx

The server, while acting as a gateway, received an invalid response from an upstream server.

Kasus penggunaan: Reverse proxy issues, upstream server errors.

503
Service Unavailable5xx

The server is not ready to handle the request.

Kasus penggunaan: Server maintenance, overloaded server.

504
Gateway Timeout5xx

The server is acting as a gateway and cannot get a response in time.

Kasus penggunaan: Upstream server too slow, network timeouts.

505
HTTP Version Not Supported5xx

The HTTP version used in the request is not supported by the server.

Kasus penggunaan: Client using unsupported HTTP version.

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.