Errors

Eshopbox uses standard HTTP status codes to indicate the success or failure of an API request.

Code in the range of

2xx indicates success,

4xx indicates there was a problem with the request provided (e.g., a required field was missing)

5xx indicates an error occurred with Eshopbox API.

Example Errors

Here are some example error responses from the Eshopbox API.

Forbidden

You'll receive a 401: Unauthorized response when you provide an invalid access token

{
    "error": {
        "errors": [
            {
                "domain": "global",
                "reason": "conditionNotMet",
                "message": "401:Authentication failed: com.google.api.auth.UnauthenticatedException: No auth token is contained in the HTTP request"
            }
        ],
        "code": 412,
        "message": "401:Authentication failed: com.google.api.auth.UnauthenticatedException: No auth token is contained in the HTTP request"
    }
}

Bad Request

You'll get a 400: Bad Request when you fail validation.

Not Found

When a resource is not found you will get a 404: Not Found response

Internal Server Error

You'll receive a 503: Internal Server Error response when something goes wrong on our side. We're automatically notified of these errors, and work to resolve them as quickly as possible.

Unauthorized Error

You'll receive a 401Unauthorized Error response code when access Token has been expired. To resolve this error you have to regenerate the access token.

Unprocessable Entity

You'll receive a 422 unprocessbale entity error response code, when something missing or any validation fails in the request. To resolve this error please re-check the request and do the changes as per the error message.

Last updated

Was this helpful?