Skip to content

Commit

Permalink
Fix HTTP status code in get_patient_header function
Browse files Browse the repository at this point in the history
  • Loading branch information
TanookiVerde committed Aug 29, 2024
1 parent d8636c7 commit 39b3883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routers/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def get_patient_header(

if configuracao_exibicao.get('indicador', False) is False:
message = ",".join(configuracao_exibicao.get('motivos', []))
raise HTTPException(status_code=204, detail=message)
raise HTTPException(status_code=403, detail=message)

return dados

Expand Down

0 comments on commit 39b3883

Please sign in to comment.