Redirect_to with different HTTP error status

Hi all,

when using redirect_to rails redirects and automatically sets the HTTP
status to 301. Is there a way to change this? I’d like to redirect
with the HTTP status 302 (moved permanently).

Any help would be greatly appreciated!

Thanks,
Daniel