Expand description
Stable values for errors[].extensions.code.
Names follow the conventions of Apollo Server and GraphQL Yoga where one exists, so off-the-shelf clients recognise them.
Constants§
- BAD_
REQUEST - The HTTP request itself is malformed (bad JSON, missing
query, …). - BAD_
USER_ INPUT 400— malformed input from the client.- BATCH_
REJECTED - Batching is off, or the batch is larger than
max_operations. - CLIENT_
ERROR - Any other
4xx. - CONFLICT
409— a conflicting concurrent change.- CSRF_
PREVENTION - A multipart request without a preflight-forcing header.
- FORBIDDEN
403— authenticated but not allowed.- GRAPHQL_
PARSE_ FAILED - The document is not syntactically valid GraphQL.
- GRAPHQL_
VALIDATION_ FAILED - The document does not validate against the schema.
- INTERNAL_
SERVER_ ERROR - Any other
5xx, and every masked unexpected error. - INTROSPECTION_
DISABLED __schema/__typewas selected while introspection is off.- METHOD_
NOT_ ALLOWED - A mutation or subscription was sent over
GET. - NOT_
ACCEPTABLE - The request’s
Acceptheader names no media type this endpoint serves. - NOT_
FOUND 404— the addressed entity does not exist.- OPERATION_
NOT_ ALLOWLISTED - Trusted-documents mode refused a document not in the manifest.
- OPERATION_
TIMEOUT - The operation did not finish within
timeout_ms. - PAYLOAD_
TOO_ LARGE - The request body is larger than allowed.
- PERSISTED_
QUERY_ HASH_ MISMATCH - The document text does not hash to the hash the client sent.
- PERSISTED_
QUERY_ NOT_ FOUND - A hash-only request named a document the server does not have.
- PERSISTED_
QUERY_ NOT_ SUPPORTED - A hash-only request reached a server with persisted queries off.
- QUERY_
LIMIT_ EXCEEDED - The document exceeds a configured static-analysis limit
(
extensions.limit,extensions.max,extensions.actualsay which). - RATE_
LIMITED 429— rate limited.- SERVICE_
UNAVAILABLE 503— a dependency is unavailable; retrying later may succeed.- TOO_
MANY_ CONNECTIONS - The endpoint is at its concurrent-connection limit.
- UNAUTHENTICATED
401— no or invalid credentials.- UNSUPPORTED_
MEDIA_ TYPE - The request’s
Content-Typeis not one this endpoint accepts. - VALIDATION_
FAILED 422— the model’s validation rules rejected the input.