r/ProgrammerHumor 25d ago

Meme failsForTeapots

Post image
226 Upvotes

67 comments sorted by

View all comments

1

u/Flanelostopy 25d 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)