# Errors

RentalCover uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g. a required parameter was omitted, a charge failed etc.), and codes in the 5xx range indicate an error with RentalCover.com’s servers (you should contact us if you receive these errors).

* **Validation or bad request errors** will return a HTTP 400 response with a description of the error.
* **General errors** will return a HTTP 400 response with a description of the error. See below for the general errors of each endpoint.
  * [Quote General Errors](/rentalcover/errors/quote-errors.md)
  * [Purchase General Errors](/rentalcover/errors/purchase-errors.md)
  * [Cancel General Errors](/rentalcover/errors/cancel-errors.md)
* **Server exceptions** will return a HTTP 500 response with the message “Unexpected internal error”. You should contact us if you receive this error.
* **Invalid or missing API key** will return a HTTP 401 response.
* **Invalid endpoints** will return a HTTP 404 response.

The RentalCover API uses the following error codes:

|                |                       |
| -------------- | --------------------- |
| **Error Code** | **Meaning**           |
| 400            | Bad Request           |
| 401            | Unauthorized          |
| 500            | Internal Server Error |


---

# 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://partner-docs.covergenius.com/rentalcover/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.
