teepluss/laravel-hmvc

How to Handle Guzzle Exception

dearteno opened this issue · 1 comments

i got Client error response [status code] 400 form API but can not handle
he said

"Guzzle \ Http \ Exception \ ClientErrorResponseException
Client error response [status code] 400 [reason phrase] Bad Request [url] "

how to handle RequestException and ClientException .

try {
 //
} catch (Guzzle\Http\Exception\ClientErrorResponseException $e) { 
 //
}