Error Handling


The Ampere API uses standard HTTP status codes to indicate the outcome of requests.

In case of an error, the response body typically includes a JSON object with additional details to help diagnose the issue.

Example:

{
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "message": "The requested user was not found",
    "details": {
      "user_id": "abc123"
    }
  }
}