Errors
Error and status codes returned by the Apollo Router
Learn about error codes and HTTP response status codes returned by the Apollo Router.
Status codes
Code | Description |
---|---|
| Bad request A request failed GraphQL validation or failed to be parsed. |
| Unauthorized Requests may receive this response in two cases:
|
| Method not allowed A request used an unallowed HTTP method. ⓘ NOTE Both mutations and subscriptions must use POST. |
| Not acceptable A request's HTTP
|
| Too many requests Request traffic exceeded configured rate limits. See client side traffic shaping. |
| Request canceled by client The request was canceled because the client closed the connection, possibly due to a client side timeout. |
| Internal server error The router encountered an unexpected issue. Report this possible bug to the router team. |
| Request timed out The request was not able to complete within a configured amount of time. See client side traffic shaping timeouts. |
ⓘ NOTE
You can create Rhai scripts that throw custom status codes. See Terminating client requests to learn more.