Skip to content

Commit

Permalink
fat fingered status code
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlundberg committed Oct 16, 2024
1 parent ed47104 commit 3288d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth_server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE

exc_str = f"{exc}".replace("\n", " ").replace(" ", " ")
logger.exception(f"{exc}")
content = {"status_code": 10422, "message": exc_str, "data": None}
content = {"status_code": 422, "message": exc_str, "data": None}
return JSONResponse(content=content, status_code=HTTP_422_UNPROCESSABLE_ENTITY)

return app

0 comments on commit 3288d53

Please sign in to comment.