Skip to content

Commit

Permalink
Updated references from RFC7807 to RFC9457.
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Jan 17, 2024
1 parent 19620b3 commit ae4a0ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Curveball Problem Middleware

This package is a middleware for the [Curveball][2] framework that catches any
exception and turns them into `application/problem+json` responses, as defined
in [RFC7807][1].
in [RFC9457][1].

By default any exception turns into a non-descript 500 Internal Server Error.
To create a more specific error, use an exception from the
Expand Down Expand Up @@ -80,6 +80,6 @@ app.use(problemMw({
```
[1]: https://tools.ietf.org/html/rfc7807
[1]: https://tools.ietf.org/html/rfc9457
[2]: https://github.com/curveball/
[3]: https://github.com/curveball/http-errors
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"problem",
"error",
"exception",
"rfc7807"
"rfc7807",
"rfc9457"
],
"author": "Evert Pot (https://evertpot.com/)",
"license": "MIT",
Expand Down

0 comments on commit ae4a0ed

Please sign in to comment.