Redirect with custom response code

Was wondering if there is a way to redirect with a custom response code?
Similar to the redirect (R) flag in Apache HTTP Server RewriteRule directive.

Not in core Traefik. Just 301 and 302.

I see there is a httpcode rewrite plugin. But there are no examples on the plugin page or git repo.

Thanks for the response.
Yea, I saw that plugin. It looks like it only supports rewriting the body by replacing a search regex with a replacement string.