HTTP Responses
This page lists the error status codes that the Platform API returns, what causes each one, and what to do. Base your integration on the status code. The message text can include details about your request, so do not match on it.
To get error bodies as JSON, send Accept: application/json with your request.
401 Unauthorized
The API cannot authenticate your request. The Bearer token is missing, wrong or revoked. See Authorization.
The response body is:
{
"message": "Unauthorized"
}403 Forbidden
Your account cannot use this module because its tiered allowance is 0, or the resource belongs to another company. To check your modules, open API Dashboard in BOMcheck. To add a module, contact sales.
An example response body is:
{
"message": "You are not authorized to use the api:request tools."
}404 Not Found
The resource does not exist, no declarations match your request, or your account does not have this module. Check the URL and parameters. If the message names a module, contact sales.
An example response body is:
{
"message": "Module api:request not found"
}415 Unsupported Media Type
POST /submissions/xml received a body that is not XML, or XML that is not well formed. Send the raw XML declaration as the request body, starting with <?xml.
An example response body is:
{
"message": "XML is not valid.",
"error": "Xml not well formed"
}422 Unprocessable Entity
One or more parameters are missing or not valid. errors lists each field with its problem. Correct the fields and send the request again.
An example response body is:
{
"message": "Validation failed!",
"errors": {
"respondByDate": ["Respond by date must be in the future"]
}
}429 Too Many Requests
The response has one of three causes:
- You have used all of the module's tiered allowance. To extend it, contact sales.
- The module's tiered allowance has expired. To renew it, contact sales.
- You have sent too many requests in one minute. Wait for the rate limit to reset, then send the request again. The
Retry-Afterheader gives the number of seconds to wait.POST /submissions/xmlandPOST /submissions/requestdo not send this header.
For the limits, see Allowances & Limits. An example response body is:
{
"message": "You have reached your tiered limit of 1000 requests per year."
}500 Server Error
BOMcheck could not complete the request. Check the BOMcheck service status before you send the request again. If the error continues, contact Customer Care.
An example response body is:
{
"message": "Server Error"
}Next Steps
- For tiered allowances and rate limits, see Allowances & Limits.
- To create a token and make a first request, see Getting Started.