Errors

The API uses standard HTTP response codes and all the successful requests will return the status code 200. Because the API works like a proxy for the internal GraphQL API the error of an unsuccessful request can be produced either by the proxy or by the GQL API itself.

Error responses will usually have a status code that's not 200 and the response body will represent an array of errors where each error has a "message" field.

[
    {
        "message": "Cannot read property 'clientID' of null",
        "locations": [
            {
                "line": 3,
                "column": 13
            }
        ],
        "path": [
            "getDelivery"
        ],
        "extensions": {
            "code": "INTERNAL_SERVER_ERROR"
        }
    }
]

Last updated