Skip to content

Commit

Permalink
Change 400 to 403
Browse files Browse the repository at this point in the history
Co-authored-by: Irfanuddin Shafi Ahmed <irfanudeen08@gmail.com>
  • Loading branch information
haasal and iudeen committed Aug 3, 2022
1 parent 27bf09c commit 72cdde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs_src/security/tutorial005.py
Expand Up @@ -135,7 +135,7 @@ async def get_current_active_user(
):
if current_user.disabled:
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST, detail="Inactive user"
status_code=status.HTTP_403_FORBIDDEN, detail="Inactive user"
)
return current_user

Expand Down

0 comments on commit 72cdde5

Please sign in to comment.