HTTP Status Code

DEVELOPMENT

Quick Definition

An HTTP status code is a three-digit number included in every HTTP response that tells the client what happened with its request. Codes are grouped into five classes: 1xx (informational), 2xx (success), 3xx (redirection), 4xx (client error), and 5xx (server error). The most familiar is 404 Not Found, but understanding the full range is essential for building and debugging web applications and APIs.

How it works

When a client (browser, API consumer, AI agent) sends an HTTP request, the server processes it and returns a response with a status code, headers, and optionally a body. The status code is the first thing the client checks to determine how to handle the response. A 200 means the request succeeded. A 301 means the resource permanently moved to a new URL. A 429 means the client is sending too many requests (rate limiting). A 503 means the server is temporarily unavailable.

Common codes every developer encounters: 200 OK, 201 Created, 204 No Content, 301 Moved Permanently, 304 Not Modified, 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 429 Too Many Requests, 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable.

Why it matters

Correct use of status codes is fundamental to building reliable APIs and web applications. Returning a 200 for an error condition makes debugging impossible. Using 301 vs 302 redirects affects SEO. Handling 429 responses with proper retry-after logic prevents getting blocked by rate limiters. The TerminalFeed API Worker, for example, returns stale cached data rather than a 500 when an upstream source fails, because a stale 200 is more useful to clients than an error.

Where you'll see this on TerminalFeed

The TerminalFeed API documentation describes the status codes returned by each endpoint. The Dev/Ops Status panel on the dashboard monitors service health by checking HTTP response codes from major platforms. The HTTP Status Code Reference tool provides a quick lookup for all standard codes.