Skip to content

feat: implement createRFC7807Error factory to support RFC7807 #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gulbaki
Copy link

@gulbaki gulbaki commented Jun 27, 2025

This PR introduces a new createRFC7807Error factory method for creating errors compatible with RFC7807

Test coverage included for default and custom scenarios

fixes: #64

Checklist

@Uzlopak
Copy link
Contributor

Uzlopak commented Jun 29, 2025

Why do we need a separater factory method?

@gulbaki
Copy link
Author

gulbaki commented Jun 29, 2025

@Uzlopak
As mentioned in the comments below, introducing a separate factory method was considered a good solution:

#64 (comment)
#64 (comment)

That's why I chose to proceed with the createRFC7807Error approach.
if you have any alternative suggestions or ideas , i can apply

@gurgunday
Copy link
Member

Hey, thanks for the PR!

Seems like there is a new RFC (rfc9457) that obseletes 7807

Can you please check if there are any big changes? The name of the factory might need to be updated as well

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.

Implement RFC7807
3 participants