Skip to main content

Error Handling

HTTP Status Codes

  • 200: Success
  • 400: Bad Request (invalid parameters)
  • 401: Unauthorized (invalid token)
  • 404: Not Found
  • 500: Internal Server Error

Error Response Format

{
"status": "error",
"message": "Amount, currency, and paymentMethod are required",
"error": "Validation failed"
}