- use
GuzzleHttp
to send apost
request, and the returned data is404
, resulting in a link status of404
; .
- then laravel will report back in the form of an error. How to make him not report an error?
- Code:
$response = $http->post($url, $http_param);
error report:
Client error: `POST http://******` resulted in a `404 Not Found` response: {"code":0,"desc":"","timestamp":"20180426114652","data":"eyJlcnJvckNvZGUiOjQwNCwiZXJyb3JNc2ciOiJOb3QgRm91bmQifQ==" (truncated...)
- Note that the error report is made by
laravel
. It is useless for me to usetry () {} catch () {}
, but it will be reported back in the form oflaravel
error report. - I don"t want him to report an error, I just want to get the 404 data returned;
- how to solve it?