LendAPI follows the standard HTTP response codes to communicate the outcome of an API request. Here's a breakdown of the code ranges and their meanings:
Codes in the 2xx range: These indicate a successful API request.
Codes in the 4xx range: These indicate an error due to an issue with the provided information. For example, it could be because a required parameter was missing. These errors can be handled programmatically. Additionally, a brief error code is typically included to explain the reported error.
Codes in the 5xx range: These indicate rare errors that occur on LendAPI's servers. They suggest an issue on the server side.
By adhering to these response codes, LendAPI provides clear indications of the success or failure of each API request, making it easier to handle errors and troubleshoot any potential issues.