Vaidikalaya

Http Status Codes


HTTP status codes are 3-digit numbers that a server sends back to the client (like a browser or API consumer) to indicate the result of the request. They are categorized into 5 main types (classes) based on the first digit.

Code RangeTypeMeaning
1xxInformationalRequest received, continuing process
2xxSuccessRequest successfully received & handled
3xxRedirectionFurther action needed to complete the request
4xxClient ErrorThe request contains bad syntax or cannot be fulfilled
5xxServer ErrorServer failed to fulfill a valid request

1xx - Informational

These codes indicate that the request was received and is being processed.

Code RangeTypeMeaning
100ContinueServer received request headers, waiting for body.
101Switching Protocols Client asked server to switch protocols (e.g., HTTP → WebSocket).

2xx - Success

The request was successfully received, understood, and accepted.

Code RangeTypeMeaning
200OkThe request was successful.
201CreatedResource was created successfully (e.g., after POST).
202AcceptedRequest accepted but processing not completed yet.
204No ContentSuccessful, but no content to return.

3xx - Redirection

Client must take additional steps to complete the request.

Code RangeTypeMeaning
301Moved PermanentlyResource has permanently moved to a new URL.
302FoundTemporarily moved to another URL.
304Not ModifiedCached version is still valid, no new data sent.

4xx - Client Error

The request was invalid or cannot be processed by the server.

Code RangeTypeMeaning
400Bad RequestRequest syntax is invalid.
401UnauthorizedRequires authentication.
403ForbiddenAuthenticated but not allowed to access.
404Not FoundThe requested resource doesn’t exist.
405Method Not AllowedHTTP method not allowed for this route.
429Too Many RequestsRate limit exceeded.

5xx - Server Error

The request was invalid or cannot be processed by the server.

Code RangeTypeMeaning
500Internal Server ErrorGeneric server error.
502Bad GatewayServer received an invalid response from upstream.
503Service UnavailableServer is down or overloaded.
504Gateway TimeoutServer took too long to respond.