How to set up a default 502 proxy timeout page?

Hi,

i’m looking for an solution to modify the Gateway Timeout json response to an custom HTML page on the global level.

I didn’t find or understand an solution for this problem. Can anyone give me an hint?

Cheers
Lenny