Professional Documents
Culture Documents
HTTP Status Codes Explained
HTTP Status Codes Explained
Table of Contents
1. 1xx: Informational
2. 2xx: Success
3. 3xx: Redirection
7. Takeaway
Each HTTP response is accompanied by a status code, and they are broken into
five categories. Each of the response status codes is used to convey general
information about the outcome of the request.
There are five primary categories of HTTP response codes, each identifiable by the
first digit:
1xx: Informational
An informational response code informs the client that the request is continuing.
https://http.dev/status 1/11
25/4/24, 15:33 HTTP Status Codes explained
100 Continue
101 Switching Protocols
102 Processing
103 Early Hints
2xx: Success
A successful response was received, interpreted corrected, and has been accepted.
200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
207 Multi-Status
208 Already Reported
218 This Is Fine
226 IM Used
3xx: Redirection
A redirection indicates that further action needs to take place before the request is
completed.
https://http.dev/status 2/11
25/4/24, 15:33 HTTP Status Codes explained
https://http.dev/status 4/11
25/4/24, 15:33 HTTP Status Codes explained
https://http.dev/status 5/11
25/4/24, 15:33 HTTP Status Codes explained
http
113.dev
Heuristic Expiration
199 Miscellaneous Warning
214 Transformation Applied
299 Miscellaneous Persistent Warning
999 Unauthorized
Takeaway
HTTP responses are always accompanied by an HTTP response status code. The
first digit of a status code indicates the category, which often indicates whether the
request succeeded or failed. Each status code can be a valuable clue when
troubleshooting problems between a client and server.
https://http.dev/status 6/11
25/4/24, 15:33 HTTP Status Codes explained
Try it now!
Status Headers
200 OK Accept-Datetime
201 Created Accept-Encoding
https://http.dev/status 7/11
25/4/24, 15:33 HTTP Status Codes explained
https://http.dev/status 8/11
25/4/24, 15:33 HTTP Status Codes explained
https://http.dev/status 9/11
25/4/24, 15:33 HTTP Status Codes explained
WWW-Authenticate
X-Content-Type-Options
X-DNS-Prefetch-Control
X-Forwarded-For
X-Forwarded-Host
X-Forwarded-Proto
X-Frame-Options
X-Powered-By
X-Request-ID
X-Robots-Tag
X-UA-Compatible
X-XSS-Protection
CONNECT HTTP/1.0
DELETE HTTP/1.1
GET HTTP/2
HEAD HTTP/3
https://http.dev/status 10/11
25/4/24, 15:33 HTTP Status Codes explained
Percent-Encoding
HTTP Protocol Upgrade Mechanism
Punycode
HTTP Range Request
HTTP Redirections
A typical HTTP session
Soft 404s
Uniform Resource Identifier (URI)
WebSocket
Encrypted WebSocket
https://http.dev/status 11/11