Error Handling
Use conventional HTTP response codes to indicate the success or failure of an API request.
HTTP Status Codes
In General
Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a verification failed etc.). Codes in the 5xx range indicate an error with Rezolve's backend servers (rarely happen).
| Code | Summary | Description |
|---|---|---|
| 200 | Ok | Success request |
| 400 | Bad request | The request was unacceptable, often due to missing a required parameter or invalid request format |
| 401 | Unauthorised | Invalid authentication details |
| 404 | Not found | API method is not found |
| 429 | Too many requests | You have exceeded the request rate limit. |
| 451 | Unavailable for legal reasons | Your request contains content that may be harmful or inappropriate and cannot be processed. |
| 500 | Internal server error | Something went wrong on API backend. |
| 503 | Service Unavailable | System busy. Please try again later. |
Error Codes
In addition to HTTP status code, the server will also return error code and message in API response for API failures. Below is the list of error codes and messages.
| Code | Error Message |
|---|---|
| 100 | Unauthorized |
| 101 | A system error is reported and we are fixing it right now. |
| 102 | System busy, please try again later. |
| 103 | Parameter '{0}' type is invalid. |
| 104 | Parameter '{0}' is required. |
| 106 | Parameter '{0}' must be greater than or equal to {1}. |
| 107 | Parameter '{0}' exceeds length limit of {1}. |
| 108 | Parameter '{0}' must be positive. |
| 109 | Parameter '{0}' numeric value out of bounds (<'{1}' digits>.<'{2}' digits> is expected). |
| 110 | Parameter '{0}' must be a number. |
| 111 | Parameter '{0}' must be smaller than or equal to {1}. |
| 112 | Parameter 'placement_id' is invalid. |
| 113 | Field '{0}' in '{1}' parameter is invalid. |
| 114 | Field '{0}' in 'facets' parameter is not supported. |
| 115 | Field '{0}' in '{1}' parameter is not supported.. |
| 116 | Field '{0}' in 'group_by' parameter is not supported.. |
| 117 | 'box' parameter must include exactly 4 integers in comma separated format. |
| 118 | The 'facets_limit' must be in [1, 1000]. |
| 119 | This app_key cannot be used for this app type. |
| 120 | Solution is disabled for this endpoint. Please contact account manager. |
| 121 | You have exceeded API usage limit. Please contact account manager. |
| 122 | Query product_id not found. |
| 123 | The value of min score and max score must be in [0,1] and max score should large than min score. |
| 124 | There are no recommendations available because there is no outfit for the query product_id. |
| 125 | Client abort request. |
| 126 | Image file upload failed or timeout. |
| 127 | Invalid filter syntax. |
| 128 | This strategy does not have a linked gallery. |
| 129 | Field ''{0}'' in ''sort_by'' parameter is not supported. |
| 130 | Invalid boosting syntax. |
| 199 | Parameter '{0}' is invalid: '{1}' . |
| 200 | Request image size exceeds 10 MB. |
| 201 | Invalid image file format. |
| 202 | Image not found. |
| 203 | Please provide 'image', 'im_url' or 'im_id' parameter. |
| 204 | The query image is still being processed, please try again later. |
| 205 | Image not indexed. |
| 206 | The image format or dimension is invalid. |
| 207 | The image feature format is invalid. |
| 208 | Invalid image or im_url. |
| 209 | Could not download the image, please try again later. |
| 210 | The im_id parameter is invalid. |
| 211 | The im_id parameter is not supported, since your query image storage is disabled. |
| 212 | Timeout while downloading image, please try again later. |
| 213 | App index still loading. |
| 214 | App index not loaded. |
| 215 | App doesn't have any images. |
| 216 | filters parameter syntax error. |
| 217 | There is zero image indexed at the moment. |
| 218 | filters parameter {0} is not searchable. |
| 219 | filters parameter {0} does not exist. |
| 220 | The facet field [{0}] is not searchable. |
| 221 | The facet field [{0}] must be not the text type. |
| 222 | The score threshold needs to be positive number. |
| 223 | Parameter 'page' exceeds maximum page of {1}. |
| 224 | Color search function has been turn off, if you want to use this function please contact customer service. |
| 225 | Parameter 'detection_sensitivity' value '{0}' is invalid. |
| 226 | The group_by [{0}] is invalid, the schema type must be string and searchable. |
| 227 | The sort_by [{0}] parameter format is invalid. |
| 228 | The value of sort order must be either 'asc' or 'desc'. |
| 229 | {0} parameter {1} does not exist. |
| 230 | {0} parameter [{1}] is not sortable. |
| 231 | The sort_group_strategy [{0}] parameter is invalid. |
| 232 | Search feature weight must have exactly {0} features in comma separated list format. |
| 233 | The imageExpirationDay [abc] is invalid. |
| 234 | The endpoint {0} is disabled. |
| 235 | Detection result '{0}' is invalid. |
| 236 | Multiple colors input should be all with ratios or without ratios. |
| 237 | Number of colors exceed limit. |
| 238 | Parameter 'color' is required. |
| 239 | 'color' is invalid. |
| 240 | App does not support color ratio input. |
| 241 | Parameter 'diversity' is invalid. |
| 242 | Diversity ratio must be between 1 to 100. |
| 243 | All diversity field names must be the same. |
| 244 | Sum of diversity ratios exceeds limit. |
| 245 | Number of diversity exceeds limit. |
| 246 | The diversity field does not exist. |
| 247 | The 'vs_diversity' field cannot be used with 'diversity' field. |
| 248 | Item not found with 'item_id'. |
| 249 | Number of points exceeds limit. |
| 250 | Parameter 'point' cannot be used with parameter 'box'. |
| 251 | Parameter '{0}' exceeds max-length '{1}'. |
| 252 | Parameter '{0}' must be a boolean value. |
| 253 | Parameter '{0}' must be a number. |
| 254 | Parameter '{0}' must be a valid IP address. |
| 255 | Parameter 'algo_rerank_conf' must be JSON string. |
| 256 | Parameter 'algorithm' is invalid. |
| 257 | App cannot support the algorithm. |
| 258 | {0} must be no more than {1}. |
| 259 | {0} must be no less than {1}. |
| 264 | Please provide 'image', 'im_url', 'im_id', 'q' or 'pid' parameter. |
| 265 | '{0}' is required as part of product metadata. |
| 266 | Request blocked due to blacklist. |
| 267 | Request blocked due to abnormal activity. |
| 429 | You have exceeded the request rate limit. Please wait a moment before calling this API again. |
| 451 | Your request contains content that may be harmful or inappropriate and cannot be processed. |
| 999 | Default error code for unmapped error messages. |