Status Codes

Status Codes are included into every API response, so you can identify wether the action was a success or not, and also get an informational message describing the status/error.

status response format
{
    "message" : "The message describing the result/state of the action",
    "success" : true/false,
    "statusCode" : the_status_code
}

Status codes :

  • 200 SUCCESS : success for GET, HEAD, PUT, TRACE request

  • 201 CREATED : resource created while using POST requests

  • 400 BAD REQUEST : The server cannot process the request due to malformed request syntax, invalid request message framing, or deceptive request routing.

  • 401 UNAUTHENTICATED : the client must authenticate itself to get the requested response

  • 403 UNAUTHORIZED : the client does not have access rights to the content

  • 404 NOT FOUND : Quartz cannot find the requested resource.

  • 500 INTERNAL SERVER ERROR : the server has encountered a situation it does not know how to handle

  • 501 NOT IMPLEMENTED : the request method is not supported by the server and cannot be handle.

  • 502 BAD GETEWAY : the server, while working as a gateway to get a response needed to handle the request, got an invalid response.

Last updated