# Status Codes

The Senmo API adheres to [standard HTTP response codes](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes). A response in the 2xx range indicates a successful request. A 4xx error signifies an issue with the input data (e.g., an incorrect routing number). In cases where an error reason is provided, your application may be able to handle these errors programmatically. A 5xx error indicates a server-side issue, which we will address as a priority.

Below is a table outlining the status codes and their meanings.

### 2xx Success

| Status Code  | Description                                                              |
| ------------ | ------------------------------------------------------------------------ |
| 200 OK       | The request succeeded.                                                   |
| 201 Created  | The request succeeded and the new resource was created.                  |
| 202 Accepted | The request has been accepted for processing but has not been completed. |

### 4xx Client Errors

| Status Code              | Description                                                                                                 |
| ------------------------ | ----------------------------------------------------------------------------------------------------------- |
| 401 Unauthorized         | The API key was invalid.                                                                                    |
| 403 Forbidden            | The account does not have access to the requested resource, or the request is blocked for security reasons. |
| 404 Not Found            | The resource that was requested could not be found.                                                         |
| 409 Conflict             | The request conflicts with another request.                                                                 |
| 413 Payload Too Large    | The request exceeds the maximum supported size (25 MB)                                                      |
| 422 Unprocessable Entity | Data was invalid or missing required parameters.                                                            |
| 429 Too Many Requests    | The account has issued too many requests.                                                                   |

### 5xx Server Errors

| Status Code               | Description                                                                                                       |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| 500 Internal Server Error | Our server encountered an error while processing your request. We will be notified and work on a fix immediately. |
| 502 Bad Gateway           | Our server encountered an error while processing your request. We will be notified and work on a fix immediately. |
| 503 Service Unavailable   | Our server encountered an error while processing your request. We will be notified and work on a fix immediately. |
| 504 Gateway Timeout       | Our server encountered an error while processing your request. We will be notified and work on a fix immediately. |


---

# 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.senmo.io/topics/status-codes.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.
