@app.route("<STR_LIT>", methods=["<STR_LIT:GET>", "<STR_LIT:POST>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"])<EOL>def redirect_to():
args_dict = request.args.items()<EOL>args = CaseInsensitiveDict(args_dict)<EOL>response = app.make_response("<STR_LIT>")<EOL>response.status_code = <NUM_LIT><EOL>if "<STR_LIT>" in args:<EOL><INDENT>status_code = int(args["<STR_LIT>"])<EOL>if status_code >= <NUM_LIT> and status_code < <NUM_LIT>:<EOL><INDENT>response.status_code = status_code<EOL><DEDENT><DEDENT>response.headers["<STR_LIT>"] = args["<STR_LIT:url>"].encode("<STR_LIT:utf-8>")<EOL>return response<EOL>
302/3XX Redirects to the given URL.
    ---
    tags:
      - Redirects
    produces:
      - text/html
    get:
      parameters:
        - in: query
          name: url
          type: string
          required: true
        - in: query
          name: status_code
          type: int
    post:
      consumes:
        - application/x-www-form-urlencoded
      parameters:
        - in: formData
          name: url
          type: string
          required: true
        - in: formData
          name: status_code
          type: int
          required: false
    patch:
      consumes:
        - application/x-www-form-urlencoded
      parameters:
        - in: formData
          name: url
          type: string
          required: true
        - in: formData
          name: status_code
          type: int
          required: false
    put:
      consumes:
        - application/x-www-form-urlencoded
      parameters:
        - in: formData
          name: url
          type: string
          required: true
        - in: formData
          name: status_code
          type: int
          required: false
    responses:
      302:
        description: A redirection.