Nginx’s policy when the reverse server hangs up

  node.js, question

When doing node isomorphism, now I want to directly let nginx return static resources when the server is hung up. How do I configure nginx?

Such as visiting a.xx.com/test.html,
When the node server hangs up, let nginx directly return the static files of test.html. Is there any way to realize this?

Using proxy _ intercept _ errors+error _ page can solve your problem.
error_page 504 /$uri
504 is the proxy timeout