Skip to main content

Status Codes

We follow the HTTP status code conventions. See the HTTP Status Code Summary for more details. 2xx Range (Success): Codes in this range indicate a successful API request. This means the requested operation was completed as expected. 4xx Range (Client Errors): Codes in this range indicate an error related to the client’s request. These errors may occur due to missing required parameters, payment failures, or other client-specific issues. 5xx Range (Server Errors): These codes indicate an issue with Ivy’s servers. When you encounter a code in this range, it signifies an error on Ivy’s side rather than an issue with the client’s request. Understanding these response codes helps developers work with Ivy’s API effectively and handle different scenarios appropriately, ensuring smooth and reliable integration.

Error Structure

All errors return a consistent JSON structure in the response body:
message
string
required
A human-readable message explaining what went wrong. This message is suitable for displaying to end customers or for debugging purposes.
category
string
A broad category classifying the type of error. Possible values:
  • api_error - Server-side errors or unexpected issues
  • invalid_request_error - Client-side errors such as invalid parameters, authentication failures, or authorization issues
  • rate_limiting - Request was rejected due to rate limiting
  • idempotency_error - Request conflicts with a previous request using the same idempotency key
code
string
A short string indicating the specific error code. You can use this to handle errors programmatically.
param
string
When the error is parameter-specific, this field indicates which parameter caused the error. Useful for displaying validation errors near the appropriate form field.
docUrl
string
A URL linking to relevant documentation that provides more context about the error.
devMessage
string
deprecated
DEPRECATED: A human-readable message providing additional details about the error, primarily intended for developers.
statusCode
number
deprecated
DEPRECATED: The HTTP status code that corresponds to the error.
data
object
deprecated
DEPRECATED: Additional error context.

Examples

{
  "message": "Amount must be greater than 0",
  "category": "invalid_request_error",
  "param": "amount",
  "docUrl": "https://docs.getivy.de/reference/errors"
}