HTTP Status Code Reference

Quick reference for HTTP status codes with descriptions

All: 62 个状态码

1xx Information(4)

100Continue

Client should continue sending the rest of the request.

101Switching Protocols

Server understands and will switch to a different protocol.

102Processing

Server has received the request and is processing it.

103Early Hints

Returns some headers before the final response for preloading.

2xx Success(10)

200OK

Request succeeded. Response contains the requested data.

201Created

Request succeeded and a new resource was created. Common for POST.

202Accepted

Request accepted for processing, but not yet completed.

203Non-Authoritative Information

Request succeeded, but information may be from a third party.

204No Content

Request succeeded, but no content in response. Common for DELETE.

205Reset Content

Request succeeded, client should reset the document view.

206Partial Content

Server delivered partial content. Used for resuming downloads.

207Multi-Status

Multiple status codes in response (WebDAV).

208Already Reported

DAV bindings already listed in previous response (WebDAV).

226IM Used

Server completed GET request using instance manipulation.

3xx Redirect(8)

300Multiple Choices

Multiple representations available, client should choose one.

301Moved Permanently

Resource permanently moved to new URL. Use new URL.

302Found

Resource temporarily at another URL.

303See Other

Use GET to retrieve resource from another URL.

304Not Modified

Resource not modified. Use cached version.

305Use Proxy

Use specified proxy (deprecated).

307Temporary Redirect

Temporary redirect with same method and body.

308Permanent Redirect

Permanent redirect with same method.

4xx Client Error(29)

400Bad Request

Server cannot understand request format.

401Unauthorized

Authentication required.

402Payment Required

Reserved for future use. Common for paywalled content.

403Forbidden

Server understood but refuses to authorize.

404Not Found

Resource does not exist. Most common status code.

405Method Not Allowed

Request method not supported.

406Not Acceptable

Cannot return content matching Accept header.

407Proxy Authentication Required

Client must authenticate with proxy first.

408Request Timeout

Server timed out waiting for request.

409Conflict

Request conflicts with server state. Common for PUT.

410Gone

Resource permanently removed.

411Length Required

Request must include Content-Length header.

412Precondition Failed

Conditions in request headers not met.

413Payload Too Large

Request body too large.

414URI Too Long

Request URL too long.

415Unsupported Media Type

Request body format not supported.

416Range Not Satisfiable

Requested range invalid.

417Expectation Failed

Expect header requirements not met.

418I'm a teapot

RFC 2324 easter egg. Server refuses to brew coffee.

421Misdirected Request

Request sent to wrong server.

422Unprocessable Entity

Well-formed request but semantic errors.

423Locked

Resource locked (WebDAV).

424Failed Dependency

Request failed due to previous failure (WebDAV).

425Too Early

Server unwilling to process potentially replayed request.

426Upgrade Required

Client should switch to TLS.

428Precondition Required

Request requires conditional headers.

429Too Many Requests

Rate limit exceeded. Slow down.

431Request Header Fields Too Large

Request headers too large.

451Unavailable For Legal Reasons

Resource unavailable for legal reasons.

5xx Server Error(11)

500Internal Server Error

Server encountered unexpected condition.

501Not Implemented

Server does not support required functionality.

502Bad Gateway

Server received invalid response from upstream.

503Service Unavailable

Server temporarily unable to handle request.

504Gateway Timeout

Server timed out waiting for upstream response.

505HTTP Version Not Supported

HTTP version not supported.

506Variant Also Negotiates

Content negotiation configuration error.

507Insufficient Storage

Server cannot store resource (WebDAV).

508Loop Detected

Infinite loop detected (WebDAV).

510Not Extended

Further extensions required.

511Network Authentication Required

Network authentication required.

What are HTTP Status Codes?

HTTP status codes are three-digit numbers returned by servers to indicate the result of a request. They are categorized into five classes: 1xx (informational), 2xx (success), 3xx (redirection), 4xx (client error), and 5xx (server error).

Understanding HTTP status codes is essential for web development and debugging. They help developers quickly identify if a request succeeded, why it failed, and what corrective action is needed.

How to Use

Click any status code card to copy it. Use the search box to quickly find specific codes. Click category tags to filter by status type.

Status Code Categories

  • 1xx - 1xx Informational: Request received, continuing process.
  • 2xx - 2xx Success: Request successfully received and processed.
  • 3xx - 3xx Redirection: Further action needed to complete request.
  • 4xx - 4xx Client Error: Request contains bad syntax or cannot be fulfilled.
  • 5xx - 5xx Server Error: Server failed to fulfill valid request.

Frequently Asked Questions (FAQ)

Q: What are the most common HTTP status codes?

A: Most common codes: 200 (OK), 301 (Permanent Redirect), 302 (Temporary Redirect), 400 (Bad Request), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found), 500 (Internal Server Error), 502 (Bad Gateway), 503 (Service Unavailable).

Q: What's the difference between 401 and 403?

A: 401 means authentication required (who are you?), 403 means authenticated but not authorized (you can't access this). Simply put: 401 is 'who are you', 403 is 'you can't access this'.

Q: Which status codes are important for SEO?

A: Important SEO codes: 200 (normal page), 301 (permanent redirect, transfers ranking), 302 (temporary redirect, preserves original URL ranking), 404 (page not found), 410 (page deleted), 503 (temporarily unavailable).

Q: When should I use 301 vs 302 redirect?

A: Use 301 for permanent redirects (search engines transfer ranking to new URL). Use 302 for temporary redirects (search engines keep original URL ranking). Site migration: 301. Campaign pages: 302.

Q: Why am I getting a 429 status code?

A: 429 means too many requests. You've hit a rate limit. Check the Retry-After header and wait before retrying. This is a common API protection mechanism.