Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient] Document when exceptions are trigger on invalid response #12522

Closed
@mnapoli

Description

@mnapoli

This is a follow-up of symfony/symfony#34046

Some HTTP requests (which? I would assume POST/PUT/PATCH/DELETE?) have their response status code validated. If the status code is not 2XX, then an exception is automatically thrown by the client in the $client->request() call.

@nicolas-grekas do you know which HTTP requests trigger validation?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions