# graphql_parse_failed

Source: https://capacms.com/docs/errors/graphql_parse_failed

400 invalid_request. The GraphQL document has a syntax error.

| HTTP status | `type`            | Surfaces |
| ----------- | ----------------- | -------- |
| 400         | `invalid_request` | GraphQL  |

## What it means

The GraphQL document has a syntax error.

## What to do

Fix the text at the line and column given.

## On GraphQL

`/api/graphql` answers the same `code` inside `errors[].extensions`. The status depends on the `Accept` header you send ([status codes](https://capacms.com/docs/api/graphql#status-codes)):

| `application/json` | `graphql-response+json` | When                                                                                               |
| ------------------ | ----------------------- | -------------------------------------------------------------------------------------------------- |
| 200                | 400                     | a syntax error, with `locations` and a hint that names them: `Fix the syntax at line 3, column 1.` |

## See also

* [GraphQL](https://capacms.com/docs/api/graphql)
