Skip to content

Commit cea3abf

Browse files
authored
Update app.py
1 parent bb275e3 commit cea3abf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎app.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ def failing():
2323
abort(404)
2424

2525

26-
@app.route("/custom")
27-
def custom():
28-
response = make_response("Custom OK", 200)
29-
response.headers["X-Custom-Header"] = "Value"
26+
@app.route("/retry")
27+
def retry_after():
28+
response = make_response("Too many requests", 429)
29+
response.headers["Retry-After"] = "3"
3030
return response
3131

3232
@app.route("/data")

0 commit comments

Comments
 (0)