Welcome Guest, Not a member yet? Register   Sign In
How can get Response from API when status is 4xx using Curl library
#5

(06-07-2024, 09:46 AM)SonzoXide Wrote:
PHP Code:
$response $client->request('GET''/api-endpoint', ['http_errors' => false]);
dd($response); 

you may try add http_errors => false, like example above to get the response from API.

many thanks
Reply


Messages In This Thread
RE: How can get Response from API when status is 4xx using Curl library - by mylastof - 06-08-2024, 08:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB