Skip to content

How can I set http_errors options of GuzzleHttp to false? #232

@landall

Description

@landall

The default value of http_errors is true, so if a http request returns with a status code 4xx or 5xx, it will triggle 2 exceptions (GuzzleHttp\Exception\ClientException and GuzzleHttp\Exception\RequestException).
This is hard to handle it.
How can I set this options to false to handle every situation with $response->getStatus()?
AB#7353

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions