Skip to content

fix(errors): include response headers in API/auth errors (#414) - #559

Merged
David-patrick-chuks-02 merged 2 commits into
Lilly-Protocol:mainfrom
Zhiyilang074811:fix/issue-414-error-headers-v2
Sep 6, 2026
Merged

fix(errors): include response headers in API/auth errors (#414)#559
David-patrick-chuks-02 merged 2 commits into
Lilly-Protocol:mainfrom
Zhiyilang074811:fix/issue-414-error-headers-v2

Conversation

@Zhiyilang074811

Copy link
Copy Markdown
Contributor

Closes #414. Adds optional headers field to LilyErrorOptions and LilySdkError, populates from failing HTTP responses, includes in toJSON() output. Tests verify x-request-id preservation.

…col#414)

- Add optional headers field to LilyErrorOptions and LilySdkError
- Populate headers from failing response in fetch-http-client
- Include headers in toJSON() output
- Add tests verifying x-request-id header preservation

Closes Lilly-Protocol#414
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.

[Bounty: $85] Include failing response headers on LilyApiError and LilyAuthenticationError

3 participants