HTTP Status Code Reference

Searchable table of all HTTP status codes from 1xx to 5xx. Filter by category and find any code instantly with color-coded badges.

CodeNameCategoryDescription

About HTTP Status Codes

HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped into five classes, each identified by the first digit of the three-digit code.

The Five Categories

Whether you are debugging an API, reading server logs, or building a REST service, knowing status codes by heart saves time. Our reference lets you search and filter all official codes, including unofficial ones like 418 (I'm a Teapot) and 451 (Unavailable For Legal Reasons).

How to Use the HTTP Status Code Reference

  1. Use the search bar to find a specific status code by number (e.g., 404), name (e.g., Not Found), or keyword from the description. Search works across all fields simultaneously for fast lookups.
  2. Filter by category using the category buttons: 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Error), or 5xx (Server Error). Clicking a category instantly narrows the list to codes in that class.
  3. Review the color-coded badges for quick visual identification: green for success codes, blue for redirects, yellow/orange for client errors, and red for server errors.
  4. Click any status code to expand detailed information including the official name, description, common causes, and troubleshooting guidance.

Understanding HTTP Status Codes

HTTP status codes are three-digit numbers returned by a web server in response to a client request, indicating the outcome of the request. Defined in RFC 9110 (formerly RFC 7231), status codes are grouped into five classes by their first digit. 1xx codes are informational, sent during provisional server processing — rarely seen in practice because most clients wait for the final response. 2xx codes indicate success: 200 OK for successful GET requests, 201 Created for successful POST requests that created a resource, and 204 No Content for successful requests with no response body.

3xx codes indicate redirection, telling the client to look for the resource at a different URL. The most common are 301 Moved Permanently (used for permanent URL changes and SEO — search engines transfer ranking signals to the new URL) and 302 Found (temporary redirect). 4xx codes indicate client errors: 400 Bad Request (malformed syntax), 401 Unauthorized (authentication required), 403 Forbidden (authenticated but not permitted), 404 Not Found (resource does not exist), and 429 Too Many Requests (rate limiting). 5xx codes indicate server errors: 500 Internal Server Error (generic server failure), 502 Bad Gateway (upstream server invalid response), 503 Service Unavailable (server overloaded or maintaining), and 504 Gateway Timeout (upstream server timeout).

Understanding status codes is essential for web developers, API designers, and system administrators. When debugging API integrations, the status code tells you whether the problem is on the client side (4xx — fix your request) or server side (5xx — contact the server team). REST API design conventions specify which codes to return for different scenarios: 200 for successful reads, 201 for resource creation, 204 for successful deletion, 400 for validation errors, 401 for missing auth, 403 for insufficient permissions, 404 for missing resources, 409 for conflicts (e.g., duplicate email), and 500 for unexpected failures. HTTP/2 and HTTP/3 use the same status code space, maintaining backward compatibility.

Frequently Asked Questions

What is an HTTP status code?
It's a three-digit number returned by a server in response to an HTTP request, indicating the outcome of the request (success, redirect, error, etc.).
What is the difference between 401 and 403?
401 Unauthorized means authentication is required. 403 Forbidden means you are authenticated but not allowed to access the resource.
Which status code should I use for a successful GET request?
200 OK is the standard success code for GET requests where a response body is returned. 204 No Content is used when there is no body.
Are unofficial codes like 418 included?
Yes. Our reference includes well-known unofficial codes such as 418 I'm a Teapot (RFC 2324) and 451 Unavailable For Legal Reasons.
What is the most common HTTP status code?
200 OK is the most common status code, returned by the majority of successful web requests. 404 Not Found is the most common error code, returned when a requested resource does not exist on the server.
What is the difference between 401 Unauthorized and 403 Forbidden?
401 means the request lacks valid authentication credentials — the client has not identified itself. 403 means the server understood the request but refuses to authorize it — the client is authenticated but lacks permission for the specific resource.
When should I use 301 vs 302 redirects?
Use 301 Moved Permanently when the URL change is permanent — search engines transfer SEO ranking to the new URL. Use 302 Found for temporary redirects where the original URL may return in the future. Using the wrong redirect type can harm SEO performance.
What does 500 Internal Server Error mean?
500 indicates an unexpected server-side error — typically an unhandled exception, configuration problem, or database failure. The server cannot provide more specific information for security reasons. Check server error logs for the actual exception details.

Related Tools