Common Errors

This document provides a detailed list of all possible error codes that the Image API may return, along with their associated reasons and troubleshooting tips.


Image API Error Codes

CodeNameDescription
400Bad RequestThis error occurs when the request is invalid. Possible causes include:
- Malformed original image.
- Incorrect URL parameters.
- The image backend is returning a 400 response.
- Issues with the imageParamValidations configuration.
401UnauthorizedThe request is blocked due to insufficient permissions or misconfiguration. Common causes include:
- Using origin= with allowDynamicOrigin disabled.
- Misconfigured allowOriginalImageRequest.
- Restrictions in hostsAllowed or bucketsAllowed.
- Invalid imageParamsAllowed.

Alternatively, the image backend may also return a 401 response.
403ForbiddenIndicates a permission issue. Potential causes include:
- The image backend is returning a 403 response.
- Insufficient permissions to access the image via Imagizer.

If the error occurs during uploads, review the upload configuration.
404Not FoundThe requested image is missing from the backend, or the backend configuration is incorrect.
499Client Closed RequestThe client closed the connection before the request was completed. To resolve this issue, consider increasing client timeouts or reducing the size of the source image to lower processing time.
500Internal Server ErrorIndicates an unexpected issue with the Imagizer server or the image backend. Check logs for further details and contact Nventify support if needed.
502Bad GatewaySimilar to a 500 error, this indicates an unexpected error with Imagizer or the image backend.
503Service UnavailableOccurs when Imagizer cannot process the request due to high load or insufficient memory. The error may also originate from the image backend.
504Gateway TimeoutThe image fetch and processing exceeded the time allowed by the backendTimeout configuration. This error may also originate from the image backend.

Notes

  • Ensure that all configuration settings in your Imagizer setup are properly defined to minimize the occurrence of these errors.
  • Refer to the logging and stats for detailed diagnostic information.
Last Updated:
Contributors: Nicholas Pettas