Errors

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.

200

- OK

This is a success response and everything worked as expected.

401

- Unauthorized

We couldn’t find a valid API key in the request.

404

- Not Found

We couldn’t locate the resource that you requested.

418

- Missing Base URL Region

You didn't use the base URL associated with your account.

422

- 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.

429

- Too Many Requests

You’ve sent too many requests to the API too quickly.

500

- Server Error

Something has gone wrong on our end, this is not normal.

Error Response Structure

Example Response
{ "status": "error", "code": 401, "errors": [ { "type": "authentication", "message": "Failed to authenticate." } ] }