DEV Community

Cover image for API Status code with Explanation
Narasimma Radhakrishnan
Narasimma Radhakrishnan

Posted on

API Status code with Explanation

HTTP Response Status Codes

Every time a browser asks a server for something, the server sends back a short code that says how it went. This code is called an HTTP status code.
HTTP status codes tell developers if a request worked, was sent somewhere else (redirected), or failed.

100 Continue - The server has received the request headers, and the client should proceed to send the request body.

200 OK - The request is OK (this is the standard response for successful HTTP requests).

201 Created - The request has been fulfilled, and a new resource is created.

202 Accepted - The request has been accepted for processing, but the processing has not been completed.

301 Moved Permanently - The requested page has moved to a new URL.

400 Bad Request - The request cannot be fulfilled due to bad syntax.

403 Forbidden - The request was a legal request, but the server is refusing to respond to it.

404 Not Found - The requested page could not be found but may be available again in the future.

503 Service Unavailable - The server is currently unavailable (overloaded or down).

505 HTTP Version Not Supported - The server does not support the HTTP protocol version used in the request.

Top comments (0)