# errorTypes

```graphql
query ErrorTypes {
  errorTypes {
    data {
      slug
      title
      status
      category
      suggestion
      docs
    }
  }
}
```

List API error types.

## Arguments

| Name       | Type   | Required | Description                                                                                             |
| ---------- | ------ | -------- | ------------------------------------------------------------------------------------------------------- |
| `category` | String |          | Optional category filter: AUTH, RESOURCE, VALIDATION, DATABASE, SUBSCRIPTION, INTEGRATION, or INTERNAL. |

## Responses

| Status | Description                                  |
| ------ | -------------------------------------------- |
| 200    | The ErrorCatalogPayload! in data.errorTypes. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query ErrorTypes {\n  errorTypes {\n    data {\n      slug\n      title\n      status\n      category\n      suggestion\n      docs\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "errorTypes": {
      "data": [
        {
          "slug": "string",
          "title": "string",
          "status": 0,
          "category": "string",
          "suggestion": "string",
          "docs": "string"
        }
      ]
    }
  }
}
```
