sure, I deleted your original message to prevent anyone from going there on accident, and everything in this channel is indexed by Answer Overflow as well
hey friends. Looking for some out-of-the-box thinking. Custom Error Pages - we know it, we love it, but is there a clever way to serve a JSON response for a 502, i.e. for an API endpoint where the client doesn't accept HTML responses?
Looking through the CEP setup and both internal and external docs, it doesn't seem to be available, but I figured the clever minds here might have a Worker-around :lul:
Custom error responses, powered by the Ruleset Engine, allow you to define custom responses for errors returned by an origin server or by a Cloudflare …