Advocate employs standard HTTP response codes to signify the outcome of an API request. In general:
  • HTTP response codes in the 2xx range signify a successful operation.
  • HTTP response codes in the 4xx range indicate an error related to the request, which may result from issues such as an omitted required parameter or a failed charge.
  • HTTP response codes in the 5xx range indicate an error on Advocate’s servers, although these are infrequent.

HTTP Status Code Summary

Attributes

Validation errors (422)

Validation failures return field-level details so you can pinpoint the failing input: