Option for HTTP status code for redirection

Sometimes redirecting with HTTP status code other than 301(Moved Permanently) is useful. Browsers or app accelerating layer(like varnish) caches 301. This causes an issue when some ssl enforced urls changed later.