获取errCode

调用errCode()方法,获得请求的错误状态码,errCode 的值等于 Linux errno

<?php
$httpClient = (new \x\Client)->http();
$res = $httpClient->domain('https://www.sw-x.cn/api.html')
		->body(['name' => 'SW-X'])
		->post();

$errCode = $httpClient->errCode();