Skip to content

Include response body in osmapi HTTP error types - #81

Open
ptxmac wants to merge 1 commit into
paulmach:masterfrom
ptxmac:osmapi-error-body
Open

ptxmac wants to merge 1 commit into
paulmach:masterfrom
ptxmac:osmapi-error-body

Conversation

@ptxmac

@ptxmac ptxmac commented Sep 13, 2026

Copy link
Copy Markdown

The API often returns a useful, human-readable error message in the response body (e.g. bbox size limits, redaction/conflict reasons), but it was being discarded.

This change reads the body and exposes it via a new Details field on the error types

The API often returns a useful, human-readable error message in the
response body (e.g. bbox size limits, redaction/conflict reasons),
but it was being discarded. Read it and expose it via a new Details
field on NotFoundError, ForbiddenError, GoneError,
RequestURITooLongError, and UnexpectedStatusCodeError.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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