When you make an invalid request, you’ll receive a response with an “errors” object.
{
"error": {
"errors": [
{
"message": "Unknown argument \"trackedShipment\" on field \"deleteTrackedShipments\" of type \"Mutation\". Did you mean \"trackedShipments\"?",
"locations": [
{
"line": 2,
"column": 26
}
The error object provides additional information to let you know the error type. Follow the table below for more information on each type.
Code | Status | Description |
---|---|---|
400 | Bad request | The server will not process the request. |
401 | Unauthorized | Necessary credentials are not present in the request or are incorrect (token). |
404 | Not Found | The resource isn’t available. This is often caused by querying for something that’s been deleted. |
500 | Internal Server Error | An internal error occurred. |
503 | Service Unavailable | The server is currently unavailable. |
504 | Gateway Timeout | The request could not complete in time. |