Xfers will use conventional HTTP response codes to indicate success or failure of an API request.

  • Codes in the 2xx range should indicate success.
  • Codes in the 4xx range should indicate an error that failed given the information provided
    • eg. a required parameter was omitted
    • eg. a charge failed
  • Codes in the 5xx range should indicate an error with Xfers' servers.

Some 4xx errors that could be handled programmatically (e.g. bank declined payments) will include an error code that briefly explains the error reported.

See Handling Errors to learn more about how to handle different error types.