Skip to content

Commit e6fbe5a

Browse files
committed
Don't use headers
1 parent 176a736 commit e6fbe5a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

spec/GraphQLOverHTTP.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -574,15 +574,15 @@ _GraphQL response_ does not include the {data} entry is one in which the
574574
The following examples provide guidance on how to deal with specific error
575575
cases:
576576

577-
#### JSON parsing failure
577+
**JSON parsing failure**
578578

579579
For example a POST request body of `NONSENSE` or `{"query":` (note: invalid
580580
JSON).
581581

582582
Requests that the server cannot interpret should result in status code `400`
583583
(Bad Request).
584584

585-
#### Invalid parameters
585+
**Invalid parameters**
586586

587587
For example a POST request body of `{"qeury": "{__typename}"}` (note: typo) or
588588
`{"query": "query Q ($i:Int!) { q(i: $i) }", "variables": [7]}` (note: invalid
@@ -591,32 +591,32 @@ shape for `variables`).
591591
A request that does not constitute a well-formed _GraphQL-over-HTTP request_
592592
SHOULD result in status code `422` (Unprocessable Content).
593593

594-
#### Document parsing failure
594+
**Document parsing failure**
595595

596596
For example a POST request body of `{"query": "{"}`.
597597

598598
Requests where the _GraphQL document_ cannot be parsed should result in status
599599
code `400` (Bad Request).
600600

601-
#### Document validation failure
601+
**Document validation failure**
602602

603603
If a request fails _GraphQL validation_, the server SHOULD return a status code
604604
of `422` (Unprocessable Content) without proceeding to GraphQL execution.
605605

606-
#### Operation cannot be determined
606+
**Operation cannot be determined**
607607

608608
If [GetOperation()](<https://spec.graphql.org/draft/#GetOperation()>) raises a
609609
_GraphQL request error_, the server SHOULD NOT execute the request and SHOULD
610610
return a status code of `422` (Unprocessable Content).
611611

612-
#### Variable coercion failure
612+
**Variable coercion failure**
613613

614614
If
615615
[CoerceVariableValues()](<https://spec.graphql.org/draft/#CoerceVariableValues()>)
616616
raises a _GraphQL request error_, the server SHOULD NOT execute the request and
617617
SHOULD return a status code of `422` (Unprocessable Content).
618618

619-
#### Field errors encountered during execution
619+
**Field errors encountered during execution**
620620

621621
If the operation is executed and no _GraphQL request error_ is raised then the
622622
server SHOULD respond with a status code of `200` (Okay). This is the case even

0 commit comments

Comments
 (0)