mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): Use HTTPStatus instead of raw number
Signed-off-by: Steven Guikal <void@fluix.one>
This commit is contained in:
parent
0435c56a41
commit
42701514e7
3 changed files with 14 additions and 7 deletions
|
@ -221,4 +221,4 @@ async def metrics(request: Request):
|
|||
|
||||
@router.get("/raisefivethree", response_class=HTMLResponse)
|
||||
async def raise_service_unavailable(request: Request):
|
||||
raise HTTPException(status_code=503)
|
||||
raise HTTPException(status_code=HTTPStatus.SERVICE_UNAVAILABLE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue