Prestavi uses standard HTTP response codes to indicate the success or failure of an API request. All error responses are formatted using the same structure, as displayed below.
- OK
This is a success response and everything worked as expected.
- Unauthorized
We couldn’t find a valid API key in the request.
- Not Found
We couldn’t locate the resource that you requested.
- Missing Base URL Region
You didn't use the base URL associated with your account.
- Validation Error
We couldn’t accept the request because it was missing a parameter or a parameter didn’t conform to the expected data structure.
- Too Many Requests
You’ve sent too many requests to the API too quickly.
- Server Error
Something has gone wrong on our end, this is not normal.
{
"status": "error",
"code": 401,
"errors": [
{
"type": "authentication",
"message": "Failed to authenticate."
}
]
}