The PayPaga API 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 with the request content such as a required parameter was omitted or had an invalid format.Codes in the 5xx range Indicate the server could not process the request due to an unexpected condition. We work hard to make them as rare as possibleSome 4xx errors that could be handled programmatically (e.g., a card is declined) include additional information such as an error code to enable more nuanced error handling..
200 | Request processed normally. |
400 | Problem consuming the request due to not adhering to the API specification. |
401 | Authorisation required due to invalid, expired or missing authorisation token. |
402 | Request processing failure. |
403 | The authorisation token does not have permissions to perform the request. |
404 | The requested resource does not exist. |
500 502 503 504 | Server could not process the request due to an unexpected condition. We work hard to make them as rare as possible |