Skip to main content

API Error Responses

Any request that returns a 4xx or 5xx HTTP status describes the error in data, with four fields: type, title, detail and errors. type is a URL for the HTTP status, and errors is an empty list. The exception is 401: every account gets a 401 with a text type, "401 Unauthorized", and no errors list.
If your error responses have a text type, such as "404 Not Found", and no errors list, your account receives the older error format. In it, a 402 has the type "402 Insufficient credits" and the title Insufficient credits, a search term rejected by the validation rules returns 422, and an order whose document can’t be found for download returns a 404 without a body. An unknown order returns a 404 with the detail Order not found in both formats, on GET /orders/{orderId} and GET /orders/{orderId}/download. To receive the format on this page, contact Kyckr Support.