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.

  • 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

Last updated