Its possible to manage a "504 Gateway Time-out" request?

Hi all !

I am playing with IPFS, i love it !

Sometimes my node is off and the Cid return a " 504 Gateway Time-out"

Its possible to redirect to the 404 page of my server or other URL when a IPFS Cid return a “504 Gateway Time-out”?


For custom redirect behavior like this, the best option is to run your gateway behind a reverse proxy like nginx, and configure it to redirect to a 404 page when upstream returns a 504.