Menu

DevelopersGet started

Errors

The AutoRFP.ai API error format, what each HTTP status means, and how MCP reports failures differently from the REST API.

The REST API uses standard HTTP status codes. A failed request returns a JSON body with an errors array.

Error format

{
  "errors": [
    {
      "status": "401",
      "title": "invalid_token",
      "detail": "Missing Authorization: Bearer token"
    }
  ]
}

Each entry in errors has:

FieldDescription
statusThe HTTP status as a string.
titleA short name for the problem, for people to read.
detailOptional. A human-readable explanation of how to fix it.
codeOptional. A machine-readable code for the specific failure.

Branch on status and, where present, code (for example INSUFFICIENT_SCOPE or RATE_LIMITED). Treat title and detail as text for people: their wording can change.

Status codes

StatusMeaning
400Invalid request. Check the parameters and body.
401The API key is missing or invalid.
403The key does not have the scope the endpoint requires.
404Not found, or the key’s Default User cannot access it.
429Rate limited. Wait and retry later.
500Server error. Retry later, and contact us if it persists.

Each endpoint in the reference lists the statuses it can return, including any extra ones specific to that endpoint.

Errors from the MCP server

The MCP server reports problems in two ways:

  • A tool call that fails, for example because the token lacks the scope or the item does not exist, returns a normal tool result with isError: true and a text message. It is not an HTTP error.
  • A missing or invalid token returns HTTP 401 with a WWW-Authenticate header, which MCP clients use to start the sign-in.

The MCP endpoint allows 600 requests per minute per IP address.