Errors
- PriceBlocs uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the2xxrange indicate success. Codes in the4xxrange indicate an error that failed given the information provided (e.g., a required parameter was omitted). Codes in the5xxrange indicate an error with PriceBlocs's servers.
Attributes
More parameters
Expand all
Have any questions or feedback?
or join us on Discord
HTTP status code summary
200 - OK | Everything worked as expected. |
---|---|
400 - Bad Request | The request was unacceptable, often due to missing a required parameter. |
401 - Unauthorized | No valid API key provided. |
402 - Request Failed | The parameters were valid but the request failed. |
403 - Forbidden | The API key doesn't have permissions to perform the request. |
404 - Not Found | The requested resource doesn't exist. |
429 - Too Many Requests | Too many requests hit the API too quickly. |
500, 502, 503, 504 - Server Errors | Something went wrong on PriceBlocs's end. |
Error Types
PriceBlocsError | This is general error, and means there is a problem with PriceBlocs servers. |
---|---|
PriceBlocsBadRequestError | Invalid request errors arise when your request has invalid parameters. |
PriceBlocsResourceNotFoundError | This occurs when a resource has not been found for an identifier you've passed in the request. |
PriceBlocsAuthenticationError | Request is not authenticated. Check if the api key used in request is valid. |
PriceBlocsPermissionError | Check the permissions of the key used in the request. |
PriceBlocsResourceValidationError | Validation errors occur when the request parameters fail constraints. |