Skip to content

feat: use PSR-18 http interface (or http async) - #458

Merged
Minishlink merged 2 commits into
masterfrom
psr-http
Jul 23, 2026
Merged

feat: use PSR-18 http interface (or http async)#458
Minishlink merged 2 commits into
masterfrom
psr-http

Conversation

@Minishlink

Copy link
Copy Markdown
Member

No description provided.

PSR-18 clients (per spec) never throw for 4xx/5xx status codes, only for
transport-level failures. Guzzle's sendRequest() implementation explicitly
disables http_errors to comply, so a 410 "Gone" response was silently
reported as success. Classify success from the response status code
instead of relying solely on thrown exceptions.
@Minishlink
Minishlink merged commit f8410af into master Jul 23, 2026
12 checks passed
@Minishlink
Minishlink deleted the psr-http branch July 23, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant