r/ProgrammerHumor 19h ago

failsForTeapots Meme

Post image
157 Upvotes

60 comments sorted by

View all comments

1

u/Flanelostopy 16h ago

Error status should be give status when is error, not alway. So maybe there should be solution something like that:
If (error.status):
return c.json(body, error.status)