GraphQL Error Codes
String codes returned in the extensions.code field of GraphQL error responses. The GraphQL specification defines error categories for parse and validation failures; Apollo Server and graphql-js extend this with additional well-known codes for authentication, authorisation, and request handling.
References
11 codes
-
BAD_REQUESTBad Request -
BAD_USER_INPUTBad User Input -
FORBIDDENForbidden -
GRAPHQL_PARSE_FAILEDGraphQL Parse Failed -
GRAPHQL_VALIDATION_FAILEDGraphQL Validation Failed -
INTERNAL_SERVER_ERRORInternal Server Error -
NOT_FOUNDNot Found -
OPERATION_RESOLUTION_FAILUREOperation Resolution Failure -
PERSISTED_QUERY_NOT_FOUNDPersisted Query Not Found -
PERSISTED_QUERY_NOT_SUPPORTEDPersisted Query Not Supported -
UNAUTHENTICATEDUnauthenticated