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

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.
Reply


Messages In This Thread
RE: How can get Response from API when status is 4xx using Curl library - by SonzoXide - 06-07-2024, 09:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB