🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Web Development Beginner

What is HTTP Status Codes?

Standardized three-digit codes returned by web servers to indicate the result of a client's HTTP request.

Status codes are grouped: 1xx (informational), 2xx (success), 3xx (redirection), 4xx (client error), 5xx (server error). Essential codes: 200 OK, 201 Created, 204 No Content, 301 Moved Permanently, 302 Found, 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 409 Conflict, 429 Too Many Requests, 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable.

Proper status code usage is critical for REST API design. Clients and monitoring tools rely on codes to determine success or failure. Using 200 for error responses is an anti-pattern — return appropriate error codes with descriptive messages.

Related Terms

CORS Preflight
An automatic OPTIONS request sent by browsers before certain cross-origin requests to check if the actual request is permitted.
Cookie
A small piece of data stored in the browser by a website to remember user preferences, login state, or tracking information.
Server-Sent Events
A server push technology that enables a server to send real-time updates to a browser over a single HTTP connection.
Progressive Enhancement
A web design strategy that starts with basic functionality for all browsers and progressively adds advanced features for capable ones.
SPA (Single Page Application)
A web application that loads a single HTML page and dynamically updates content without full page reloads.
Lazy Loading
A technique that delays loading non-critical resources until they are needed, improving initial page load performance.
View All Web Development Terms →