# Errors

Ospree utilizes standard HTTP response codes to convey the outcome of an API request. In summary: Codes in the 2xx range denote success. Codes in the 4xx range signify an error due to inadequate information provided (e.g., missing required parameters, payment failure, etc.). Codes in the 5xx range denote server errors, which are uncommon.

<table data-full-width="false"><thead><tr><th>Code</th><th>Message</th><th>Description</th></tr></thead><tbody><tr><td>200</td><td>Ok</td><td>Everything worked as expected.</td></tr><tr><td>400</td><td>Bad Request</td><td>The request was unacceptable, often due to missing a required parameter.</td></tr><tr><td>401</td><td>Unauthorized</td><td>No valid bearer token provided.</td></tr><tr><td>500</td><td>Server Errors</td><td>Something went wrong on Ospree's end. (These are rare.)</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://docs.ospree.io/ospree-api/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.
