How to do a real 301 redirect from your application?

How to do a real 301 redirect from your application?

  
How can I do a real 301 redirect from the application? I tried it with setting an header with statuscode 301, but from the client side I will get a 302 status code then. Any tips/best practices for me?
Hi Brian,

Did you try setting the status and a location header manually. Then ending the flow with an empty download node?

Regards,
João Rosado