This error is thrown in an exception when I call a bucket->query. It doesn’t fail if the query is simple like "SELECT * from ‘default’ ". But if I add something like " WHERE collection = ‘somevalue’ " it throws the error. And I guess there’s no way to get the response code or status from the underlying HTTP request. You can only get the status if the exception is not thrown. Is there in fact a sneaky workaround that is not mentioned in the docs? Is there a way to get the actual “status code” that it proposes to “inspect” ? The docs for the PHP SDK are very raw, by the way. Almost no explanations and code samples.