Browse Source

Merge branch 'docs-fixes' of https://github.com/Shaptain/fastapi into docs-fixes

pull/14040/head
Shaptain 11 months ago
parent
commit
828014ab57
  1. 1
      docs_src/handling_errors/tutorial004.py

1
docs_src/handling_errors/tutorial004.py

@ -32,7 +32,6 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
@app.get("/items/{item_id}")
async def read_item(item_id: int):
if item_id == 3:
raise HTTPException(status_code=418, detail="Nope! I don't like 3.")
return {"item_id": item_id}

Loading…
Cancel
Save