We’ve followed the official docs for our Umbraco 11 site - but they use a redirect - which returns a 302 status code, not a 500.
The page which is redirected to is a normal page - so that then returns a 200.
This is a problem because all errors in controller code, and APIs will do the same thing - so our code which tries to handle errors from the API will never be hit - they look like 200 responses (with the error page HTML in the response body).
So the question is: how do I make the custom error page behave correctly and return a 500 status code?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/112742-official-docs-500-error-handler-returns-302-200