Is it possible to modify 504 Gateway Timeout reponse?

Solution Verified - Updated -

Issue

  • When a connection between APIcast and API Backend timed out, APIcast responses 504 Gateway Timeout like bellow. Is it possible to modify the response header and body?

    < HTTP/1.1 504 Gateway Time-out
    < server: openresty
    < date: Mon, 10 Jul 2023 00:50:16 GMT
    < content-type: text/html
    < content-length: 164
    < set-cookie: ef0180eb152f33f7e50e15ecf00173af=244ce99a63d786e2dc146ae3f60c1670; path=/; HttpOnly; Secure; SameSite=None
    < 
    <html>
    <head><title>504 Gateway Time-out</title></head>
    <body>
    <center><h1>504 Gateway Time-out</h1></center>
    <hr><center>openresty</center>
    </body>
    </html>
    

Environment

  • Red Hat 3scale API Management 2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content