I am using Guzzle client for laravel application. If I used invalid URL means I want get status code so using “http error: false” its working perfect with no issue. But If my localhost serve not start I got “Connection refused” how to I catch error status code in laravel like dd() print without using try catch.