Cloudflare DevelopersCD
Cloudflare Developers10mo ago
3 replies
Ruxorly

JSON for a Custom Error Page

Heyo, I was looking around and I couldn’t find any way to use a JSON message for an error page. Ideally, we would return a JSON error parsable by the API Client, and not any HTML. Is this possible? It seems more of a use case for Snippets but I would like to check if a native error integration is possible for things like rate limits and blocked requests. Thanks!
Was this page helpful?