Skip to content

Error Codes

This page documents the error responses returned by the VectorCare Open API.

StatusDescription
200 OKRequest successful
201 CreatedResource created successfully
400 Bad RequestInvalid request body or parameters
401 UnauthorizedMissing or invalid authentication
403 ForbiddenValid authentication but insufficient permissions
404 Not FoundResource not found
429 Too Many RequestsRate limit exceeded

Error responses include a message and error code:

{
"field_name": [
{
"message": "Human readable error message",
"code": "namespace:error_code"
}
]
}

For non-field errors:

{
"message": "Human readable error message",
"code": "namespace:error_code"
}
CodeMessage
members:not_authenticatedAuthentication credentials were not provided.
members:authentication_failedAuthentication failed.
members:permission_deniedYou do not have permission to perform this action.
CodeMessage
common:requiredThis field is required.
common:nullThis field may not be null.
common:blankThis field may not be blank.
common:choice_invalid”{input}” is not a valid choice.
common:max_lengthEnsure this field has no more than {max_length} characters.
common:integer_invalidA valid integer is required.
common:number_invalidA valid number is required.
common:email_invalidA valid email address is required.
common:datetime_invalid_formatDatetime format should be {format}.
common:date_invalid_formatDate format should be {format}.
common:list_invalidValue should be a list.
common:address_invalidAddress is invalid.
CodeMessage
api:bad_requestBad request.
api:not_foundNot found.
api:too_many_requestsRequest was throttled.
api:method_not_allowedMethod not allowed.
api:unknown_errorUnknown error.
CodeMessage
public_api:public_api_not_enabledThe Open API is not enabled for the service type of this request.
responder:too_many_locationsToo many locations. (Max 200 per request)
{
"message": "Authentication credentials were not provided.",
"code": "members:not_authenticated"
}
{
"name": [
{
"message": "\"invalid_state\" is not a valid choice.",
"code": "common:choice_invalid"
}
]
}
{
"timestamp": [
{
"message": "Timestamp cannot be in the future.",
"code": "api:bad_request"
}
]
}
{
"message": "You do not have permission to perform this action.",
"code": "members:permission_denied"
}
{
"message": "Request was throttled.",
"code": "api:too_many_requests"
}

The API implements rate limiting to ensure service stability. If you exceed the rate limit, you’ll receive a 429 Too Many Requests response.

When rate limited:

  • Wait before retrying
  • Implement exponential backoff

If you’re consistently hitting rate limits, contact us to discuss your use case.