Skip to content

Instantly share code, notes, and snippets.

@imrankabir02
Created December 2, 2025 06:39
Show Gist options
  • Select an option

  • Save imrankabir02/1b68f2a52efbcb85c712db5aba47707b to your computer and use it in GitHub Desktop.

Select an option

Save imrankabir02/1b68f2a52efbcb85c712db5aba47707b to your computer and use it in GitHub Desktop.
HTTP Response Status Codes.md

HTTP Response Status Codes

A comprehensive reference of all standard HTTP response status codes, organized by category and including detailed explanations.


1xx — Informational

100 Continue

The server acknowledges the initial request and instructs the client to continue with the rest of the request.

101 Switching Protocols

The server agrees to switch to a different protocol as requested via the Upgrade header.

102 Processing (WebDAV)

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

103 Early Hints

Used to return preliminary headers before the final response, often for improving performance.


2xx — Success

200 OK

The request succeeded. Response content depends on method (GET returns resource, POST returns result, etc.).

201 Created

A new resource was successfully created.

202 Accepted

The request is accepted for processing, but not guaranteed to complete.

203 Non-Authoritative Information

Returned metadata differs from the origin server’s but is collected from a local or third-party copy.

204 No Content

The request succeeded but no content is returned.

205 Reset Content

Instructs the client to reset the document view.

206 Partial Content

The server returns only part of the resource, as requested with range headers.

207 Multi-Status (WebDAV)

Multiple resource statuses returned.

208 Already Reported (WebDAV)

Prevents repeated listing of the same internal members.

226 IM Used

Indicates the server applied instance manipulations to the resource.


3xx — Redirection

300 Multiple Choices

Multiple representation options available.

301 Moved Permanently

Resource permanently redirected to a new URI.

302 Found

Temporary redirection.

303 See Other

Client should fetch the resource via GET at another URI.

304 Not Modified

Resource not changed; client can use cached version.

305 Use Proxy (Deprecated)

Indicates the resource must be accessed via a proxy.

306 Switch Proxy (Unused)

No longer used.

307 Temporary Redirect

Same as 302 but method consistency must be maintained.

308 Permanent Redirect

Same as 301 but method consistency must be maintained.


4xx — Client Errors

400 Bad Request

Malformed request; server cannot process.

401 Unauthorized

Authentication required.

402 Payment Required

Reserved; used for digital payment systems.

403 Forbidden

Request understood but refused.

404 Not Found

Resource not found.

405 Method Not Allowed

HTTP method not supported for resource.

406 Not Acceptable

Client’s Accept headers cannot be satisfied.

407 Proxy Authentication Required

Client must authenticate with the proxy.

408 Request Timeout

Server timed out waiting for client.

409 Conflict

Request conflicts with current resource state.

410 Gone

Resource permanently removed.

411 Length Required

Content-Length header missing.

412 Precondition Failed

Preconditions (If-* headers) not met.

413 Payload Too Large

Request body too large.

414 URI Too Long

URI supplied is too long to be processed.

415 Unsupported Media Type

Content type not supported.

416 Range Not Satisfiable

Requested range cannot be met.

417 Expectation Failed

Expectation from Expect header cannot be met.

418 I'm a Teapot (RFC 2324)

Easter egg from HTCPCP protocol.

421 Misdirected Request

Request sent to the wrong server.

422 Unprocessable Content (WebDAV)

Well-formed but semantically invalid.

423 Locked (WebDAV)

Resource is locked.

424 Failed Dependency (WebDAV)

Previous request failure affects this one.

425 Too Early

Server unwilling to risk replay attacks.

426 Upgrade Required

Client must switch protocol.

428 Precondition Required

Server requires conditional requests.

429 Too Many Requests

Client sent too many requests (rate-limiting).

431 Request Header Fields Too Large

Headers too large.

451 Unavailable For Legal Reasons

Access restricted by legal demand.


5xx — Server Errors

500 Internal Server Error

Generic server error.

501 Not Implemented

Server lacks capability to fulfill method.

502 Bad Gateway

Invalid response from upstream server.

503 Service Unavailable

Server temporarily overloaded or down.

504 Gateway Timeout

Upstream server failed to respond.

505 HTTP Version Not Supported

Server does not support requested HTTP version.

506 Variant Also Negotiates

Content negotiation configuration error.

507 Insufficient Storage (WebDAV)

Server cannot store resource.

508 Loop Detected (WebDAV)

Infinite loop detected while processing.

510 Not Extended

Further extensions required.

511 Network Authentication Required

Client must authenticate to gain network access.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment