error object in place of the file.
Branch on
error.code. The HTTP status can surprise you: USAGE_EXCEEDED and RATE_LIMITED both come with status 500.
Error codes
A failed render does not count toward your quota.
The API has no
UNAUTHORIZED code. An unknown API key returns BAD_REQUEST.
Common problems
Get help
If you cannot find the cause, write to an@bannerify.co or ask on Discord. Include the full error response, and therequestId in particular.