MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PHP/comments/iow9b7/performance_impact_of_php_exceptions/g4jx68e/?context=3
r/PHP • u/ayeshrajans • Sep 08 '20
44 comments sorted by
View all comments
Show parent comment
1
I make it there are two approaches. One is when your backend performs the user-friendly validation and another when everything is handled by the frontend. In the latter case indeed to throw a generic 400 Bad request would be enough.
View all comments
Show parent comment
1
u/colshrapnel Sep 09 '20
I make it there are two approaches. One is when your backend performs the user-friendly validation and another when everything is handled by the frontend. In the latter case indeed to throw a generic 400 Bad request would be enough.