ztabs.digital services

HTTP Status Codes Reference

Complete reference of HTTP status codes used in web development. Search by code number, name, or description. Organized by category: informational, success, redirection, client error, and server error.

HTTP Status Codes Reference

1xx Informational

100Continue

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

Common use: Large POST requests

101Switching Protocols

The server is switching protocols as requested by the client.

Common use: WebSocket upgrade

102Processing

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

Common use: Long-running requests

103Early Hints

Used to return some response headers before the final HTTP message.

Common use: Resource hints, preloading

2xx Success

200OK

The request has succeeded.

Common use: Standard success response

201Created

The request has been fulfilled and a new resource has been created.

Common use: POST creating a resource

202Accepted

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

Common use: Async processing

203Non-Authoritative Information

The request was successful but the response is from a transformed source.

Common use: Proxy or mirror

204No Content

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

Common use: DELETE, successful update

205Reset Content

The server successfully processed the request and asks the client to reset the document view.

Common use: Form reset after submit

206Partial Content

The server is delivering only part of the resource due to a range header.

Common use: Range requests, resumable downloads

207Multi-Status

Conveys information about multiple resources in situations where multiple status codes might be appropriate.

Common use: WebDAV

208Already Reported

Used inside a DAV binding to avoid enumerating internal members repeatedly.

Common use: WebDAV

226IM Used

The server has fulfilled a GET request for the resource, and the response represents the result of one or more instance-manipulations.

Common use: Instance manipulation

3xx Redirection

300Multiple Choices

The request has more than one possible response. The client should choose one.

Common use: Content negotiation

301Moved Permanently

The URL of the requested resource has been changed permanently.

Common use: URL permanently moved

302Found

The URL of the requested resource has been changed temporarily.

Common use: Temporary redirect

303See Other

The server sent this response to direct the client to get the requested resource at another URI with a GET request.

Common use: Post-Redirect-Get

304Not Modified

Indicates that the resource has not been modified since the version specified by the request headers.

Common use: Caching, conditional requests

305Use Proxy

The requested resource must be accessed through the proxy given by the Location header.

Common use: Deprecated, rarely used

307Temporary Redirect

The server sends this response to direct the client to get the requested resource at another URI with the same method.

Common use: Preserve request method

308Permanent Redirect

The resource is permanently located at another URI. The client should use the same request method for future requests.

Common use: Permanent redirect, preserve method

4xx Client Errors

400Bad Request

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

Common use: Malformed request body

401Unauthorized

Authentication is required and has failed or has not yet been provided.

Common use: Missing or invalid auth

402Payment Required

Reserved for future use. Originally intended for digital payment systems.

Common use: Payment required (rare)

403Forbidden

The client does not have access rights to the content.

Common use: Authenticated but not permitted

404Not Found

The server can not find the requested resource.

Common use: Resource does not exist

405Method Not Allowed

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

Common use: Wrong HTTP method

406Not Acceptable

No content matching the criteria in the Accept header could be found.

Common use: Content negotiation failed

407Proxy Authentication Required

Authentication is required to access the proxy.

Common use: Proxy auth

408Request Timeout

The server did not receive a complete request within the time it was prepared to wait.

Common use: Client too slow

409Conflict

The request could not be processed because of conflict in the current state.

Common use: Concurrent modification

410Gone

The requested resource is no longer available and will not be available again.

Common use: Resource permanently removed

411Length Required

The server refuses to accept the request without a defined Content-Length.

Common use: Missing Content-Length

412Precondition Failed

One or more preconditions given in the request header fields were not met.

Common use: Conditional request failed

413Payload Too Large

The request entity is larger than limits defined by the server.

Common use: Request body too big

414URI Too Long

The URI requested by the client is longer than the server is willing to interpret.

Common use: URL too long

415Unsupported Media Type

The media format of the requested data is not supported by the server.

Common use: Wrong Content-Type

416Range Not Satisfiable

The range specified in the Range header cannot be fulfilled.

Common use: Invalid range request

417Expectation Failed

The expectation given in the Expect request header could not be met.

Common use: Expect header mismatch

418I'm a teapot

The server refuses to brew coffee because it is, permanently, a teapot.

Common use: Easter egg, RFC 2324

422Unprocessable Entity

The request was well-formed but could not be processed due to semantic errors.

Common use: Validation errors

425Too Early

The server is unwilling to risk processing a request that might be replayed.

Common use: Replay risk

426Upgrade Required

The server refuses to perform the request using the current protocol.

Common use: Protocol upgrade needed

428Precondition Required

The origin server requires the request to be conditional.

Common use: Missing If-Match

429Too Many Requests

The user has sent too many requests in a given amount of time.

Common use: Rate limiting

431Request Header Fields Too Large

The server is unwilling to process the request because its header fields are too large.

Common use: Headers too big

451Unavailable For Legal Reasons

The user requested a resource that is not available due to legal reasons.

Common use: Censorship, legal block

5xx Server Errors

500Internal Server Error

The server has encountered a situation it does not know how to handle.

Common use: Unexpected server error

501Not Implemented

The request method is not supported by the server and cannot be handled.

Common use: Unsupported capability

502Bad Gateway

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

Common use: Upstream server error

503Service Unavailable

The server is not ready to handle the request. Common causes are maintenance or overload.

Common use: Server overload, maintenance

504Gateway Timeout

The server, while acting as a gateway or proxy, did not get a response in time from an upstream server.

Common use: Upstream timeout

505HTTP Version Not Supported

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

Common use: Unsupported HTTP version

506Variant Also Negotiates

The server has an internal configuration error; the chosen variant resource is configured to engage in transparent content negotiation.

Common use: Content negotiation error

507Insufficient Storage

The method could not be performed because the server is unable to store the representation.

Common use: Disk full

508Loop Detected

The server detected an infinite loop while processing the request.

Common use: WebDAV infinite loop

510Not Extended

Further extensions to the request are required for the server to fulfill it.

Common use: Extension required

511Network Authentication Required

The client needs to authenticate to gain network access.

Common use: Captive portal

Understanding HTTP Status Codes

HTTP status codes are three-digit numbers returned by a server in response to a client's request. They indicate whether the request succeeded, failed, or needs further action. Every web developer encounters these codes when building APIs, debugging errors, or configuring redirects. Codes are grouped by their first digit: 1xx informational, 2xx success, 3xx redirection, 4xx client error, and 5xx server error.

Most Common HTTP Status Codes

200 OK — The request succeeded. Used for successful GET, PUT, or PATCH. 201 Created — A resource was created, often after a POST. 301 Moved Permanently — Permanent redirect; update bookmarks. 302 Found — Temporary redirect. 404 Not Found — The requested resource does not exist. 500 Internal Server Error — The server encountered an unexpected condition.

REST API Best Practices

Use the correct status code for each response. Return 400 for malformed requests, 401 for unauthenticated access, 403 when the user lacks permission, and 429 when rate limits are exceeded. Proper status codes help API consumers handle errors programmatically and improve debugging. Search our reference to find the right code for your use case.

Related Tools