The information on this page should be used for troubleshooting purposes only. Clients should not rely on these headers or error codes, as they may change in the future.Documentation Index
Fetch the complete documentation index at: https://docs.bunny.net/llms.txt
Use this file to discover all available pages before exploring further.
Response headers
Responses from the Bunny Optimiser may include the following headers:X-DownloadSize: Size of the original asset downloaded from the originX-BO-CompressionRatio: Percentage reduction in size of the final asset compared to the originalX-BO-OriginDownloadTime: Time spent downloading files from the origin (including the watermark, if present), in millisecondsX-BO-ProcessingTime: Time spent on local processing, in millisecondsX-BO-Processing-Error: Lists any errors that occurred while processing the request (see below)
Error codes
The following errors may be returned as the value of theX-BO-Processing-Error header.
General errors
101→ An unknown error occurred102→ The original source file could not be downloaded from the origin103→ The source image could not be decoded or parsed as a valid image104→ Optimisation was skipped or failed because the output became larger than the original105→ The GIF file is invalid or cannot be processed106→ Text-based content could not be minified successfully107→ The requested output format is not supported
Watermark-related
200→ The watermark image could not be retrieved from its origin201→ The watermark origin request was cancelled before completion202→ The watermark image could not be decoded or parsed as a valid image204→ The watermark image URL returned a 404 Not Found response
Processing constraints
301→ The generated or requested WebP image exceeds the allowed size limit302→ The requested resize would upscale the image, but upscaling is not enabled303→ The requested upscale exceeds the allowed limit