Skip to navigation

HTTP Response Codes

The following HTTP codes are used in the responses:

  • 200 when the request was successful.
  • 201 when a record was created.
  • 400 when there was an issue with the request.
  • 401 when the request needs to be authenticated.
  • 402 when the request could not be completed because of your organization’s billing status.
  • 403 when an operation was not allowed.
  • 404 when the URL or record was not found.
  • 409 when the request conflicts with an existing record (for example, a duplicate contact email).
  • 422 when a field failed validation.
  • 429 when the rate limit was exceeded. See Rate Limits.
  • 500 when an unexpected error occurred on our side.

Error responses include a message, a messageKey, and, for validation errors, an errors list describing each invalid field:

{
"status": "error",
"message": "Missing required parameter: name",
"messageKey": "errors.missing_required_param",
"statusCode": 422,
"code": "4004",
"errors": [
{ "field": "body.lead.name", "type": "missing", "msg": "Field required" }
]
}