HTTP Status Codes Reference

Quick reference for HTTP response status codes and their meanings.

HTTP status codes are three-digit numbers returned by web servers to indicate the result of a client request. This free reference tool lets you look up any HTTP status code instantly, with a clear explanation of what it means and when it is used. Ideal for web developers debugging API responses, server configurations, and network issues. Everything runs locally in your browser.

200
OK
Request succeeded.
201
Created
Resource created.
301
Moved Permanently
URL moved.
400
Bad Request
Invalid syntax.
401
Unauthorized
Auth required.
403
Forbidden
Access denied.
404
Not Found
Page missing.
500
Internal Server Error
Server error.
503
Service Unavailable
Server overloaded.
Your data stays in your browser
Was this tool useful?
Tutorial

How to use

1
1

Usage Step

Quick reference for HTTP response status codes and their meanings.

Guide

Complete Guide to HTTP Status Codes

What are HTTP Status Codes?

HTTP status codes are standardized three-digit response codes returned by servers as part of the HTTP protocol. They are grouped into five classes: 1xx (informational), 2xx (success), 3xx (redirection), 4xx (client error), and 5xx (server error). Each code communicates a specific outcome — 200 OK means the request succeeded, 404 Not Found means the resource does not exist, and 500 Internal Server Error indicates a server-side failure. These codes are defined in RFC 7231 and related RFCs.

Why HTTP Status Codes Matter

Correct use of status codes is fundamental to building reliable APIs and web applications. They tell clients how to handle responses: follow a redirect (301/302), retry later (429/503), or show an error message (400/404/500). Search engines use codes like 301 for permanent redirects and 404 for broken links in their crawling. Monitoring systems watch for 5xx codes to detect outages. Using the wrong code can break caching, confuse clients, and hurt SEO rankings.

Common Status Codes Every Developer Should Know

The most frequently encountered codes are: 200 (OK), 201 (Created), 204 (No Content), 301 (Moved Permanently), 302 (Found/Temporary Redirect), 304 (Not Modified), 400 (Bad Request), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found), 405 (Method Not Allowed), 429 (Too Many Requests), 500 (Internal Server Error), 502 (Bad Gateway), and 503 (Service Unavailable). Knowing when to return each code is essential for building professional-quality APIs.

Best Practices for Using Status Codes

Always return the most specific code that applies. Use 201 after creating a resource, not just 200. Return 204 for successful DELETE operations with no body. Use 400 for validation errors and include a descriptive error body. Return 429 with a Retry-After header for rate-limited requests. Avoid using 200 for error responses — that breaks client-side error handling. Log 5xx errors for monitoring and alerting.

Examples

Worked Examples

Example: Debugging a 403 Forbidden Error

Given: an API endpoint returns 403 when requesting user data.

1

Step 1: Check if the request includes a valid authentication token.

2

Step 2: Verify the token has the required permissions/scopes for the resource.

3

Step 3: Distinguish 403 (authenticated but not authorized) from 401 (not authenticated).

Result: The token was valid but lacked the admin scope required by the endpoint.

Example: Implementing Proper Redirects

Given: a website is moving from /old-page to /new-page permanently.

1

Step 1: Return 301 (Moved Permanently) with a Location header pointing to /new-page.

2

Step 2: Search engines will transfer link equity to the new URL.

3

Step 3: Browsers and proxies will cache the redirect.

Result: 301 redirect preserves SEO value and sends users to the correct page.

Use Cases

Use cases

API Development

Look up the correct HTTP status code for every API response scenario — from 201 Created for successful resource creation to 422 Unprocessable Entity for validation errors. Using precise status codes makes your API self-documenting and helps clients handle responses correctly without reading error messages.

Server Troubleshooting

Quickly identify what a 502 Bad Gateway, 503 Service Unavailable, or 504 Gateway Timeout means when debugging production issues. Understanding the difference between these server error codes helps you pinpoint whether the problem is in your application, reverse proxy, or upstream service.

SEO and Redirects

Search engines rely on HTTP status codes to understand your site structure. Use 301 for permanent redirects to preserve link equity, 302 for temporary redirects, and fix any unintended 404 errors. Returning the wrong redirect code can split page authority and hurt your search rankings significantly.

Learning Web Fundamentals

Understanding HTTP status codes is essential for any web developer or DevOps engineer. This reference covers all standard codes from the informational 1xx series through the server error 5xx series, with clear explanations of when each code should be used in real-world applications.

Frequently Asked Questions

?What are HTTP status codes?

Three-digit numbers returned by web servers indicating the outcome of a request. They are grouped into 1xx (informational), 2xx (success), 3xx (redirection), 4xx (client error), and 5xx (server error).

?What does 404 Not Found mean?

The server cannot find the requested resource. This usually means the URL is wrong, the page was deleted, or the resource never existed. It is the most recognized HTTP error code.

?What is the difference between 401 and 403?

401 Unauthorized means the request lacks valid authentication credentials. 403 Forbidden means the server understood the request and the identity, but refuses to authorize it — the user does not have permission.

?When should I use 301 vs 302 redirects?

Use 301 (Moved Permanently) when a URL has changed forever — search engines transfer link equity. Use 302 (Found) for temporary redirects where the original URL will return later.

?What causes a 500 Internal Server Error?

A 500 error indicates an unexpected condition on the server, such as an unhandled exception, misconfigured server, or database connection failure. Check server logs for the specific cause.

?Is this HTTP status code tool free?

Yes, completely free with no registration, limits, or ads.

?Is my data private when using this tool?

This is a reference tool that does not process any of your data. Everything runs locally in your browser with no server communication.

?What HTTP status code should I return for validation errors?

Use 400 Bad Request for general validation errors or 422 Unprocessable Entity if the request was well-formed but semantically invalid. Include a descriptive error body with field-level details.

Help us improve

How do you like this tool?

Every tool on Kitmul is built from real user requests. Your rating and suggestions help us fix bugs, add missing features and build the tools you actually need.

Rate this tool

Tap a star to tell us how useful this tool was for you.

Suggest an improvement or report a bug

Missing a feature? Found a bug? Have an idea? Tell us and we'll look into it.

Related Tools

Recommended Reading

Recommended Books on HTTP & Web APIs

As an Amazon Associate we earn from qualifying purchases.

Boost Your Capabilities

Professional Products to Boost Your Development Setup

As an Amazon Associate we earn from qualifying purchases.

Newsletter

Get Free Productivity Tips & New Tools First

Join makers and developers who care about privacy. Every issue: new tool drops, productivity hacks, and insider updates — no spam, ever.

Priority access to new tools
Unsubscribe anytime, no questions asked