Skip to content

fix: set ResponseError.status for failed replies - #819

Merged
tobixen merged 1 commit into
masterfrom
fix/response-error-status
Oct 24, 2026
Merged

tobixen merged 1 commit into
masterfrom
fix/response-error-status

Conversation

@tobixen

@tobixen tobixen commented Oct 23, 2026

Copy link
Copy Markdown
Member

Commit message:

fix: set ResponseError.status for failed replies

DAVError gained a status attribute in 3.6.0, but a failing status
inside a multistatus (a 507 <propstat> or <response> status in a
PROPFIND reply, say) raised a ResponseError with status None, so the
code could only be read from the message text.  That check now
passes the code, or None for a status line it cannot parse.  For
consistency the parse_* methods' non-2xx raises go through
error_from_response(), keeping body and preconditions too, and the
foreign-href sync 507 passes its code.

Prompt: A 507 from propfind comes back as a ResponseError with status set to None

Assisted-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>

🤖 Generated with Claude Code

@tobixen
tobixen force-pushed the fix/response-error-status branch from 7e855c5 to e76edcb Compare October 24, 2026 00:02
DAVError gained a status attribute in 3.6.0, but a failing status
inside a multistatus (a 507 <propstat> or <response> status in a
PROPFIND reply, say) raised a ResponseError with status None, so the
code could only be read from the message text.  That check now
passes the code, or None for a status line it cannot parse.  For
consistency the parse_* methods' non-2xx raises go through
error_from_response(), keeping body and preconditions too, and the
foreign-href sync 507 passes its code.

Prompt: A 507 from propfind comes back as a ResponseError with status set to None

Assisted-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
@tobixen
tobixen force-pushed the fix/response-error-status branch from e76edcb to 824e26e Compare October 24, 2026 08:12
@tobixen
tobixen merged commit 824e26e into master Oct 24, 2026
17 checks passed
@tobixen
tobixen deleted the fix/response-error-status branch October 24, 2026 10:07
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