Response Codes
HTTP generates response status codes to indicate if a particular request has been a success or a failure. When you request access to the API, it communicates back on the status in the form of response codes.
In general, the status codes in the 2xx range indicate "Success" and codes in the 4xx and 5xx range indicate "Failure" of the request.
Code | Description |
---|---|
200 | SUCCESS - The API request was successful and completed without any errors. |
201 | CREATED - The API to create a new resource was completed successfully and a new resource has been created. |
400 | BAD REQUEST - The input passed in the Request API is invalid or incorrect. The requestor has to change the input parameters and send the request again. |
401 | UNAUTHORIZED - The request is a special request and the user who has requested the operation is not entitled to perform the requested operation. |
403 | FORBIDDEN - The user's account is not authorized to access the API. |
404 | NOT FOUND - The requested API source is not available. |
409 | CONFLICT - The request cannot be fulfilled due to a conflict in the state of the resource. |
500 | INTERNAL ERROR - The request cannot be completed due to an error that occurred in the server while processing the request. |