Skip to main content
xPay uses standard HTTP response codes to indicate the success or failure of an API request. Codes in the 2xx range signify success. Codes in the 4xx range indicate client-side errors based on the information provided. Codes in the 5xx range indicate errors related to xPay’s servers. Below is the list of HTTP status codes Most errors in xPay will include an error code that can be used to handle the issue programmatically, along with a description that explains the reported problem.

Attributes of the error object

Example error object:
HTTP Status Code: 500
errorCode
string
A unique code representing the type of error that occurred. This code is used to identify specific issues and facilitate troubleshooting.
errorDescription
string
A detailed message explaining the error represented by the error code. This description provides additional context to help understand the cause of the error.

Error codes

Below is a list of error codes that xPay may return in the errorCode field, along with information on how to resolve them.