@app.route("<STR_LIT>")<EOL>def relative_redirect_n_times(n):
assert n > <NUM_LIT:0><EOL>response = app.make_response("<STR_LIT>")<EOL>response.status_code = <NUM_LIT><EOL>if n == <NUM_LIT:1>:<EOL><INDENT>response.headers["<STR_LIT>"] = url_for("<STR_LIT>")<EOL>return response<EOL><DEDENT>response.headers["<STR_LIT>"] = url_for("<STR_LIT>", n=n - <NUM_LIT:1>)<EOL>return response<EOL>
Relatively 302 Redirects n times.
    ---
    tags:
      - Redirects
    parameters:
      - in: path
        name: n
        type: int
    produces:
      - text/html
    responses:
      302:
        description: A redirection.