Skip to main content
PaveWay uses standard 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 that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.).
  • Codes in the 5xx range indicate an error with PaveWay’s servers.

internal Error Object

When an error occurs, the response body will contain a standardized error object.

Attributes

type
string
required
The type of error returned. Can be one of: api_error, card_error, idempotency_error, or invalid_request_error.
code
string
For some errors that could be handled programmatically, a short string indicating the error code reported.
message
string
required
A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
param
string
If the error is parameter-specific, the parameter related to the error. For example, for a card error, this could be card_number.
request_id
string
The ID of the request that generated the error. Helpful for debugging and support.

Error Types


Common Error Codes

Payment & Card Errors

Validation Errors

Idempotency Errors