# Errors

**gospace AI** uses standard HTTP response codes to signal the success or failure of an API request. Typically:

* Codes in the 2xx range signify success.
* Codes in the 4xx range suggest that the request failed due to the provided information. This could be due to reasons like missing a required parameter, a model training failure, etc.
* Codes in the 5xx range imply a server-side error with gospace AI's systems, which are quite rare.

Certain 4xx errors that could be programmatically addressed, such as insufficient training data or unsupported model type, include an error code offering a brief explanation of the reported error.

<table data-full-width="false"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>200 - OK</td><td>The request succeeded.</td></tr><tr><td>400 - Bad Request</td><td>There's an issue with the data in the request.</td></tr><tr><td>401 - Unauthorised</td><td>No valid API key provided.</td></tr><tr><td>403 - Forbidden</td><td>The API key doesn't have permission.</td></tr><tr><td>404 - Not Found</td><td>The requested resource doesn't exist.</td></tr><tr><td>429 - Too Many Requests</td><td>Too many requests hit the API too quickly. </td></tr><tr><td>500, 502, 503, 504 - Server Errors</td><td>Oops thats us...</td></tr></tbody></table>
