def redirect(to, headers=None, status=<NUM_LIT>,<EOL>content_type='<STR_LIT>'):
headers = headers or {}<EOL>headers['<STR_LIT>'] = to<EOL>return HTTPResponse(<EOL>status=status,<EOL>headers=headers,<EOL>content_type=content_type)<EOL>
Abort execution and cause a 302 redirect (by default).

    :param to: path or fully qualified URL to redirect to
    :param headers: optional dict of headers to include in the new request
    :param status: status code (int) of the new request, defaults to 302
    :param content_type: the content type (string) of the response
    :returns: the redirecting Response