# Errors

Zūm Rails wraps all API responses in the same JSON format, and the HTTP status is also returned as part of the response body in the statusCode field.

{% tabs %}
{% tab title="Success Response" %}

```json
{
    "statusCode": 200,
    "message": "POST Request successful.",
    "isError": false,
    "result": {
    }
}
```

{% endtab %}

{% tab title="Error Response" %}

```json
{
    "statusCode": 400,
    "isError": true,
    "responseException": {
       "exceptionMessage": {
        }
    }
}
```

{% endtab %}
{% endtabs %}

The Zūm Rails API uses the following http error codes:

<table><thead><tr><th width="134">Error Code</th><th>Meaning</th></tr></thead><tbody><tr><td>400</td><td>Bad Request -- Your request is invalid.</td></tr><tr><td>401</td><td>Unauthorized -- Your API key is wrong.</td></tr><tr><td>403</td><td>Forbidden -- The endpoint requested is hidden for administrators only.</td></tr><tr><td>404</td><td>Not Found -- The specified endpoint or entity could not be found.</td></tr><tr><td>429</td><td>Too Many Requests -- You reached your quota</td></tr><tr><td>500</td><td>Internal Server Error -- We had a problem with our server. Try again later.</td></tr></tbody></table>
