Skip to content

Expose the response to improve error handling#33

Open
joren wants to merge 2 commits into
phusion:masterfrom
joren:feat/improve_error_handling
Open

Expose the response to improve error handling#33
joren wants to merge 2 commits into
phusion:masterfrom
joren:feat/improve_error_handling

Conversation

@joren

@joren joren commented Jul 8, 2026

Copy link
Copy Markdown

Expose response as attr_reader on error classes

This allows accessing response headers directly (e.g. error.response.headers["Retry-After"]) instead of parsing the error message string.

joren added 2 commits July 8, 2026 09:34
In case you want to use the headers of the response when hitting the
rate limit. This way you don't need to regex your way through the
message.
@joren joren changed the title Feat/improve error handling Expose the response to improve error handling Jul 8, 2026
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