> Error Pages do not apply to responses with an HTTP status code of 500, 501, 503, or 505. These exceptions help avoid issues with specific API endpoints and other web applications. You can still customize responses for these status codes using Custom Error Rules.
Edit: Gemini says you could make a custom worker and do a 5XX redirect that way, but I haven't tried it. Does make sense though.