Open soullivaneuh opened 9 years ago
I think I have a clue:
/**
* @var \GuzzleHttp\Message\ResponseInterface
*/
private $response;
AFAIK, if Guzzle got a 4xx or a 5xx error, it throw an exception instead of returning the response.
I don't know if guzzle is the best for it or if we just have to configure it, but a 401
code with response could be possible:
$ curl http://localhost:8000/api/user | json_pp
{
"error" : "invalid_grant",
"error_description" : "No API key given."
}
Behat config:
Behat feature:
Result:
Is that an issue or a misconfiguration?
Thanks.