[BUGFIX] Use real HTTP status code as default for redirects