API Status Codes

When dealing with API requests, it is crucial to be familiar with various status codes. Without a clear understanding of these codes, identifying issues in your API request and resolving them becomes challenging.

The below table describes the status codes that you may find while making API calls,

Status TypeStatus CodeMeaning
Informational100Continue
Informational101Switching Protocols
Success200OK (Standard response for successful HTTP requests)
Success201Created (The request has been fulfilled, resulting in the creation of a new resource)
Success204No Content (The server successfully processed the request but does not need to return an entity body)
Redirection301Moved Permanently (The requested resource has been permanently moved to another location)
Redirection302Found (The requested resource has been temporarily moved to another location)
Redirection304Not Modified (Indicates that the resource has not been modified since the version specified by the request headers)
Client Error400Bad Request (The server cannot or will not process the request due to a client error)
Client Error401Unauthorized (Similar to 403 Forbidden, but specifically for authentication)
Client Error403Forbidden (The client does not have the necessary permission)
Server Error500Internal Server Error (A generic error message returned when an unexpected condition was encountered)
Server Error502Bad Gateway (The server, while acting as a gateway or proxy, received an invalid response from an inbound server)
Server Error503Service Unavailable (The server is not ready to handle the request)