Black Horse FlexPay uses conventional HTTP response codes to indicate the success or failure of an API request that you make in our UAT or live environments, as per the table below:
Error Code | Description |
---|---|
200 / 20x | The payload was signed by the FlexPay key and the request was successfully performed. |
400 Bad Request | The server or method could not understand your request due to use of invalid syntax. |
401 Unauthorised | You must authenticate using your API credentials to get the required response. |
403 Forbidden | Unauthorised access to the requested resource. The payload was not signed by the FlexPay key. |
404 Not Found | The requested resource could not be found. Check that the API endpoint you entered is correct and the resource exists. |
405 Method Not Allowed | The requested method is known by the server but has been disabled and cannot be used. |
408 Request Timeout | The request timed out, this response is sent on an idle connection. |