Error Codes

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).

CodeSummaryDescription
200OkSuccess request
400Bad requestThe request was unacceptable, often due to missing a required parameter or invalid request format
401UnauthorisedInvalid authentication details
404Not foundAPI method is not found
429Too many requestsYou have exceeded the request rate limit.
451Unavailable for legal reasonsYour request contains content that may be harmful or inappropriate and cannot be processed.
500Internal server errorSomething went wrong on API backend.
503Service UnavailableSystem 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.

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