Throwing response exceptions conditionally in Laravel 8.x
October 13, 2021 — When you’re using Laravel’s Http client to make Http requests and something went wrong from the server-side, the server would return one of the error reponses such as 500 Internal Server Error, 502 Gateway Timeout, and so on.