Status Codes

A API precisa retornar os códigos HTTP corretos para cada request.

Code       Definition Description
200 OK

Success.

201 Created
The request has been fulfilled, resulting in the creation of a new resource. Only available for the POST method.
202 Accepted
The request for an asynchronous process was received successfuly. Only available for the POST method.
204 No Content
The server successfully processed the request and is not returning any content.
400 Bad Request

The request has parameter(s) invalid(s).

401 Unauthorized

The access token was not informed or do not have access APIs.

403 Forbidden
The request was a valid request, but the user does not have access permission.
404 Not Found

The appeal stated in the request was not found.

405 Method Not Allowed
The request method is not supported for the requested resource.
406 Not Acceptable
The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
413 Request is to Large

The request is exceeding the limit allowed for the profile of your access token.

422 Unprocessable Entity

The request has business mistakes.

429 Too Many Requests

The consumer burst limit requests for time.

500 Internal Server Error

Unexpected error, something is broken in the API.