HTTP Response Codes

Explanation of HTTP Response Codes

CodeTitleDescription
200OKSuccessful operation.
201CreatedResource created.
400Bad RequestInvalid parameter.
401UnauthorizedInvalid token.
403ForbiddenNo permissions.
404Not FoundResource not found.
405Method Not AllowedHTTP verb not allowed.
409ConflictConflict in the request.
411Length RequiredMissing Content-Length header.
412Precondition FailedPrecondition failed.
429Too Many RequestsRequest limit exceeded.
500Internal Server ErrorServer error.
503Service UnavailableService unavailable.

Example of error response (400 Bad Request):

{
    "message": "An error has occurred",
    "errors": "Invalid operation"
}