Skip to content
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

Add examples with custom HTTP exceptions #6

Open
Fcmam5 opened this issue Oct 2, 2023 · 0 comments
Open

Add examples with custom HTTP exceptions #6

Fcmam5 opened this issue Oct 2, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Fcmam5
Copy link
Owner

Fcmam5 commented Oct 2, 2023

Add an example of how to achieve the following:

   {
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "detail": "Your current balance is 30, but that costs 50.",
    "instance": "/account/12345/msgs/abc",
    "balance": 30,
    "accounts": ["/account/12345",
                 "/account/67890"]
   }

src: https://datatracker.ietf.org/doc/html/rfc7807#page-3


A use case where the application throws a business-specific exception

@Fcmam5 Fcmam5 added enhancement New feature or request good first issue Good for newcomers labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant