# Error Codes

For errors, Commonstack returns a JSON response with the following shape:

```json
{
  "code": 500,
  "message": "failed",
  "data": {}
}
```

**Error codes**

<table><thead><tr><th width="132.0859375">Code</th><th>Description</th></tr></thead><tbody><tr><td>400</td><td>Invalid request parameters</td></tr><tr><td>401</td><td>Unauthorized (invalid or missing access key)</td></tr><tr><td>404</td><td>Model not found or inactive</td></tr><tr><td>429</td><td>Account limit exceeded (insufficient balance)</td></tr><tr><td>500</td><td>Internal server error or provider error</td></tr></tbody></table>
