Error responses for the Token Plan API
Error responses of the Token Plan API come in two layers.
When a request fails signature or parameter-type validation, the gateway returns the following structure (JSON or XML, depending on request headers):
Common error codes:
Once the request passes gateway validation, business results are returned with HTTP 200, and the
Business error codes are defined by the service (for example,
Gateway layer (HTTP 4xx)
When a request fails signature or parameter-type validation, the gateway returns the following structure (JSON or XML, depending on request headers):
| Code | HTTP status | Description |
|---|---|---|
| InvalidAccessKeyId.NotFound | 404 | AccessKey not found |
| SignatureDoesNotMatch | 400 | Request signature mismatch |
| MissingDate | 400 | x-acs-date header is missing |
| InvalidPageNum | 400 | Invalid parameter type (codes are named after the parameter, e.g. InvalidPageNum) |
Business layer (HTTP 200)
Once the request passes gateway validation, business results are returned with HTTP 200, and the Success field distinguishes success from failure. On failure, Code and Message are returned:
APIKEY-1005); refer to actual responses.