Content of redirect pages

On any 3XX redirect nginx shows the default nginx page for that kind of redirect.

return 301 https://newdomain.com$request_uri

How do I change that to show a html page: /html/redirectpages/redirect301.html or text: return 301 "being redirected"?

I have lots of server blocks that redirect to the new server block I made. Do I have to change configuration in all the blocks or can I do it only in the new one?