# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.gospace.com/errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
