You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Added documentation for more GraphQL error codes that can occur during Router execution. ([PR #7160](https://github.com/apollographql/router/issues/7160))
1
+
### Added documentation for more GraphQL error codes that can occur during router execution. ([PR #7160](https://github.com/apollographql/router/issues/7160))
2
2
3
-
Added documentation for more GraphQL error codes that can occur during Router execution, including better differentiation between HTTP status codes and GraphQL error extensions codes.
3
+
Added documentation for more GraphQL error codes that can occur during router execution, including better differentiation between HTTP status codes and GraphQL error extensions codes.
4
4
5
5
By [@timbotnik](https://github.com/timbotnik) in https://github.com/apollographql/router/pull/7160
Copy file name to clipboardExpand all lines: docs/source/routing/errors.mdx
+9-9
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: Reference of error codes and HTTP status codes returned by Apollo G
6
6
7
7
Learn about error codes and HTTP response status codes returned by GraphOS Router and Apollo Router Core.
8
8
9
-
## HTTP Status codes
9
+
## HTTP status codes
10
10
11
11
<PropertyListkind="errCodes">
12
12
<Propertyname="400"short="Bad request">
@@ -71,15 +71,15 @@ You can create Rhai scripts that throw custom status codes. See [Terminating cli
71
71
72
72
</Note>
73
73
74
-
## GraphQL Error codes
74
+
## GraphQL error codes
75
75
76
76
GraphQL error codes can appear in client responses under `errors[].extensions.code`, which is an established convention found in [GraphQL error extensions](https://spec.graphql.org/October2021/#sec-Errors.Error-result-format). Learn how to see these error codes in Studio via [extended error metrics](/graphos/routing/graphos-reporting#enabling-extended-error-reporting).
77
77
78
78
<PropertyListkind="errCodes">
79
79
80
80
<Propertyname="CANNOT_SEND_PQ_ID_AND_BODY">
81
81
82
-
The operation could not be executed because sending a persisted query ID and a
82
+
The operation was not executed because sending a persisted query ID and a
83
83
body in the same request is disallowed.
84
84
85
85
</Property>
@@ -110,7 +110,7 @@ The response from a subgraph did not match the GraphQL schema.
110
110
</Property>
111
111
<Propertyname="GATEWAY_TIMEOUT">
112
112
113
-
There request timed out when fetching data from a connector service.
113
+
The request timed out when fetching data from a connector service.
114
114
115
115
</Property>
116
116
<Propertyname="GRAPHQL_VALIDATION_FAILED">
@@ -132,22 +132,22 @@ connector service.
132
132
</Property>
133
133
<Propertyname="MAX_ALIASES_LIMIT">
134
134
135
-
The operation was not executed due to exceeding the max_aliases limit.
135
+
The operation was not executed due to exceeding the `max_aliases` limit.
136
136
137
137
</Property>
138
138
<Propertyname="MAX_DEPTH_LIMIT">
139
139
140
-
The operation was not executed due to exceeding the max_depth limit.
140
+
The operation was not executed due to exceeding the `max_depth` limit.
141
141
142
142
</Property>
143
143
<Propertyname="MAX_HEIGHT_LIMIT">
144
144
145
-
The operation was not executed due to exceeding the max_height limit.
145
+
The operation was not executed due to exceeding the `max_height` limit.
146
146
147
147
</Property>
148
148
<Propertyname="MAX_ROOT_FIELDS_LIMIT">
149
149
150
-
The operation was not executed due to exceeding the max_root_fields limit.
150
+
The operation was not executed due to exceeding the `max_root_fields` limit.
151
151
152
152
</Property>
153
153
<Propertyname="QUERY_NOT_IN_SAFELIST">
@@ -169,7 +169,7 @@ There was an attempt to store this operation in the APQ cache, but the provided
169
169
</Property>
170
170
<Propertyname="PERSISTED_QUERY_NOT_FOUND">
171
171
172
-
The operation was not executed since it was not found in the automatic persisted query (APQ) cache.
172
+
The operation was not executed because it was not found in the automatic persisted query (APQ) cache.
173
173
This is an expected behavior when using the APQ protocol.
0 commit comments