Skip to main content

Module codes

Module codes 

Source
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/__type was selected while introspection is off.
METHOD_NOT_ALLOWED
A mutation or subscription was sent over GET.
NOT_ACCEPTABLE
The request’s Accept header 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.actual say 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-Type is not one this endpoint accepts.
VALIDATION_FAILED
422 — the model’s validation rules rejected the input.