200

HTTP Status Lite

HTTP Status Codes Reference

A comprehensive demo for the http-status-lite npm package. Browse, search, and copy HTTP status codes with ease.

Showing 62 of 62 status codes

100
Continue
Informational

Server has received the request headers and client should proceed to send the body

Example Usage:

Used for large uploads to avoid sending body if headers are rejected

101
Switching Protocols
Informational

Server agrees to switch to the protocol requested by the client

Example Usage:

Commonly used for WebSocket upgrades

102
Processing
Informational

Server has received and is processing the request, but no response is available yet

Example Usage:

Used for long-running operations with WebDAV

103
Early Hints
Informational

Server sends preliminary headers to allow client to start loading resources

Example Usage:

Preload CSS or JavaScript before final response

200
OK
SuccessCommon

Request succeeded and the response body contains the requested resource

Example Usage:

Standard response for successful GET, PUT, or POST requests

201
Created
SuccessCommon

Request succeeded and a new resource was created

Example Usage:

Returned after successfully creating a new user or post

202
Accepted
SuccessCommon

Request has been accepted for processing but is not yet complete

Example Usage:

Used for asynchronous operations like batch processing

203
Non-Authoritative Information
Success

Request succeeded but the returned information may be from a cached or third-party source

Example Usage:

Proxy servers may return this with cached content

204
No Content
SuccessCommon

Request succeeded but there is no content to return

Example Usage:

Common response for successful DELETE requests

205
Reset Content
Success

Request succeeded and the client should reset the document view

Example Usage:

Used to clear form inputs after submission

206
Partial Content
Success

Server is delivering only part of the resource due to a range request

Example Usage:

Video streaming with range headers for seeking

207
Multi-Status
Success

Response body contains status for multiple operations in a WebDAV request

Example Usage:

WebDAV operations affecting multiple resources

208
Already Reported
Success

Members of a DAV binding have already been enumerated in a previous response

Example Usage:

WebDAV binding optimization

226
IM Used
Success

Server has fulfilled a GET request for the resource and the response is a representation of the instance-manipulation result

Example Usage:

Delta encoding and instance manipulation

300
Multiple Choices
Redirection

Request has multiple possible responses and the client should choose one

Example Usage:

Content negotiation with multiple format options

301
Moved Permanently
RedirectionCommon

Resource has been permanently moved to a new URL

Example Usage:

SEO-friendly URL changes, HTTP to HTTPS migration

302
Found
RedirectionCommon

Resource has been temporarily moved to a different URL

Example Usage:

Temporary redirects during maintenance

303
See Other
RedirectionCommon

Redirect to a different URL using GET method

Example Usage:

Post-Redirect-Get pattern after form submission

304
Not Modified
RedirectionCommon

Resource has not been modified since the last request

Example Usage:

Browser caching with If-Modified-Since header

305
Use Proxy
Redirection

Request must be made through a proxy

Example Usage:

Deprecated due to security concerns

307
Temporary Redirect
RedirectionCommon

Resource has been temporarily moved, preserving the original HTTP method

Example Usage:

Temporary URL changes while maintaining POST data

308
Permanent Redirect
RedirectionCommon

Resource has been permanently moved, preserving the original HTTP method

Example Usage:

Permanent URL changes while maintaining request method

400
Bad Request
Client ErrorCommon

Server cannot process the request due to invalid syntax or malformed structure

Example Usage:

Missing required fields or invalid JSON

401
Unauthorized
Client ErrorCommon

Authentication is required and has failed or not been provided

Example Usage:

Missing or invalid JWT token

402
Payment Required
Client Error

Payment is required to access the resource

Example Usage:

Subscription-based APIs or pay-per-use services

403
Forbidden
Client ErrorCommon

Server understands the request but refuses to authorize it

Example Usage:

User lacks permission for the requested resource

404
Not Found
Client ErrorCommon

Server cannot find the requested resource

Example Usage:

Accessing a non-existent user or post

405
Method Not Allowed
Client ErrorCommon

Request method is not supported for the target resource

Example Usage:

Sending POST to a read-only endpoint

406
Not Acceptable
Client Error

Server cannot produce a response matching the Accept headers

Example Usage:

Client requests XML but server only supports JSON

407
Proxy Authentication Required
Client Error

Authentication with a proxy is required

Example Usage:

Corporate proxy requiring credentials

408
Request Timeout
Client Error

Server timed out waiting for the request

Example Usage:

Client took too long to send request body

409
Conflict
Client ErrorCommon

Request conflicts with the current state of the server

Example Usage:

Duplicate resource or version conflict

410
Gone
Client Error

Resource has been permanently deleted and will not be restored

Example Usage:

Intentionally removed content

411
Length Required
Client Error

Request is missing the Content-Length header

Example Usage:

POST request without Content-Length

412
Precondition Failed
Client Error

One or more conditions in the request headers failed

Example Usage:

If-Match or If-Unmodified-Since header mismatch

413
Payload Too Large
Client Error

Request body exceeds the server size limit

Example Usage:

Uploading a file larger than the configured maximum

414
URI Too Long
Client Error

Request URI exceeds the server length limit

Example Usage:

Extremely long query parameters

415
Unsupported Media Type
Client Error

Media type of the request body is not supported

Example Usage:

Sending XML to an endpoint that only accepts JSON

416
Range Not Satisfiable
Client Error

Requested range is invalid or cannot be served

Example Usage:

Requesting bytes beyond file length

417
Expectation Failed
Client Error

Server cannot meet the Expect header requirement

Example Usage:

Client expects 100-continue but server refuses

418
I'm a teapot
Client Error

Server refuses to brew coffee because it is a teapot (RFC 2324 April Fools joke)

Example Usage:

Easter egg response in APIs

421
Misdirected Request
Client Error

Request was directed at a server that cannot produce a response

Example Usage:

HTTP/2 connection reuse issues

422
Unprocessable Entity
Client ErrorCommon

Request is well-formed but contains semantic errors

Example Usage:

Validation errors in form data

423
Locked
Client Error

Resource is locked and cannot be accessed

Example Usage:

WebDAV file locking

424
Failed Dependency
Client Error

Request failed due to a previous failed request

Example Usage:

WebDAV operation depending on prior success

425
Too Early
Client Error

Server is unwilling to process due to potential replay attack

Example Usage:

TLS early data rejection

426
Upgrade Required
Client Error

Server requires an upgrade to a different protocol

Example Usage:

HTTP/1.1 to HTTP/2 upgrade

428
Precondition Required
Client Error

Server requires the request to be conditional

Example Usage:

Requiring If-Match header for updates

429
Too Many Requests
Client ErrorCommon

Client has sent too many requests in a given time period

Example Usage:

Rate limiting response

431
Request Header Fields Too Large
Client Error

Request headers exceed the server limit

Example Usage:

Too many cookies or large Authorization header

451
Unavailable For Legal Reasons
Client Error

Resource is unavailable due to legal demands

Example Usage:

Censored or legally restricted content

500
Internal Server Error
Server ErrorCommon

Server encountered an unexpected condition that prevented it from fulfilling the request

Example Usage:

Unhandled exception or database connection failure

501
Not Implemented
Server Error

Server does not support the functionality required to fulfill the request

Example Usage:

Unsupported HTTP method

502
Bad Gateway
Server ErrorCommon

Server received an invalid response from an upstream server

Example Usage:

Reverse proxy cannot reach backend server

503
Service Unavailable
Server ErrorCommon

Server is temporarily unable to handle the request

Example Usage:

Maintenance mode or server overload

504
Gateway Timeout
Server ErrorCommon

Server did not receive a timely response from an upstream server

Example Usage:

Proxy timeout waiting for backend

505
HTTP Version Not Supported
Server Error

Server does not support the HTTP version used in the request

Example Usage:

HTTP/2 request to HTTP/1.1 only server

506
Variant Also Negotiates
Server Error

Server has an internal configuration error in content negotiation

Example Usage:

Transparent content negotiation loop

507
Insufficient Storage
Server Error

Server is unable to store the representation needed to complete the request

Example Usage:

WebDAV storage quota exceeded

508
Loop Detected
Server Error

Server detected an infinite loop while processing the request

Example Usage:

WebDAV binding loop

510
Not Extended
Server Error

Further extensions to the request are required

Example Usage:

Missing required extension header

511
Network Authentication Required
Server Error

Client needs to authenticate to gain network access

Example Usage:

Captive portal login page