title: Is there some way I get 301 error while proxy_pass is returning 502 error?
body: <pre><code>location / {
     proxy_pass /newurl/;
  }
  
  location /newurl {
     return 303 /old/users;
  }
  </code></pre>
  
  <p>I am trying to access / and getting 502 error, as my proxy to /newurl is returning an error 301.
  Is there some way I can proxy and get the 301 error with the same content to UI?</p>