Error response
Updated at:2025-11-03
When an error is encountered during API access, the corresponding error code and information will be returned to identify and address the issue. If a request error occurs, detailed error information is provided within the Response Body, formatted as follows:
| Parameter name | Types | Description |
|---|---|---|
| code | String | Specify the exact error type. |
| message | String | Provide a detailed description of the error. |
| requestId | String | The requestId causing this error |
Example:
Plain Text
1 {
2 "requestId": "3ffd9f45-6908-452d-9f4f-5fb1f5f5d8d6",
3 "code": "INVALID_PARAMETER_VALUE",
4 "message": "Metric data required."
5 }
BCM service error codes
| Error code | Error message | HTTP status code | Description |
|---|---|---|---|
| AUTHORIZATION_ERROR | invalid user credential information | 403 | Failed to verify information |
| INVALID_PARAMETER | Required statistics[] parameter String[] is not present | 400 | Invalid parameter. Statistics[] parameter is not present |
| INVALID_PARAMETER | Required periodInSecond parameter int is not present | 400 | Invalid parameter. PeriodInSecond parameter is not present |
| INVALID_PARAMETER_VALUE | Period in second must be positive. | 400 | Invalid parameter value. PeriodInSecond must be positive |
| INVALID_PARAMETER_VALUE | Start time is later than 2 hours after current time or earlier than 40 days ago. | 400 | Invalid parameter value. Start time is 2 hours later than current time or earlier than 40 days ago |
| INTERNAL_ERROR | We encountered an internal error. Please try again. | 500 | Any other errors not explicitly defined. |
