Get error type

errorType(slug: String!): ApiErrorType

Arguments

ArgumentTypeRequiredDescription
slugString!YesError slug identifier (e.g. "insufficient-credits"). Returns solution steps and related errors.

Response

Returns ApiErrorType. Open the type for its fields and nested types.

FieldTypeDescription
slugString!Unique slug identifier (e.g. "resource-not-found")
titleString!Human-readable title
statusInt!Default HTTP status code
categoryString!Error category (AUTH, RESOURCE, VALIDATION, etc.)
suggestionStringSuggested fix for the error
docsStringLink to documentation
solutionApiErrorSolutionSolution details with fix steps

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query ErrorType($slug: String!) {
  errorType(slug: $slug) {
    slug
    status
    category
    docs
    suggestion
  }
}
json
{
  "slug": "example"
}