Skip to main content

Response Codes

The Ctrack Crystal API uses standard HTTP status codes to indicate the success or failure of a request. The following are the possible status codes you may encounter when interacting with the API:

Success Codes

200 OK

Example response:

{
"message": "<string>",
"data": {}
}

201 Created

Example response:

{
"message": "<string>",
"data": {}
}

Client Error Codes

400 Bad Request

Example response:

{
"message": "<string>"
}

401 Unauthorized

Example response:

{
"message": "<string>"
}

403 Forbidden

Example response:

{
"message": "<string>"
}

404 Not Found

Example response:

{
"message": "<string>"
}

429 Too Many Requests

Example response:

{
"message": "<string>"
}

Server Error Codes

500 Internal Server Error

Example response:

{
"message": "<string>"
}