| Parameter | Details | 
|---|---|
| location | The location the response should redirect to. | 
| code | (Optional) The redirect status code, 302 by default. Supported codes are 301, 302, 303, 305, and 307. | 
| Response | (Optional) A Response class to use when instantiating a response. The default is werkzeug.wrappers.Response if unspecified. | 
The location parameter must be a URL. It can be input raw, such as 'http://www.webpage.com' or it can be built with the url_for() function.