Skip to main content

Error Handling

All RMZ APIs use standard HTTP status codes and return structured JSON error responses.

Merchant API Error Format

Error responses from the Merchant API include an error: true field:

Storefront API Error Format

The Storefront API uses success: false:

License API Error Format

The License API returns an error code string:

HTTP Status Codes

Validation Errors

When request validation fails (400 or 422), the response includes field-level errors:

Best Practices

Always check the HTTP status code first, then parse the response body for details.
  1. Check status codes — do not assume every response is successful
  2. Parse error messages — they contain actionable information
  3. Handle validation errors — iterate the errors object to display field-specific messages
  4. Log errors — include the timestamp and request details for debugging
  5. Handle network errors — timeouts and connection failures are not JSON responses