From 86868255c056936160616f51b2a7d2330937d183 Mon Sep 17 00:00:00 2001 From: Casper Rasmussen Date: Fri, 13 Jan 2017 08:30:50 +0100 Subject: [PATCH] Update 505 to 500 in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ce1a89d..4144cb9 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ func postValidate() throws { ``` ## Overriding error thrown on failed `init` 🔨 -The error thrown by a failed `Node.extract` will be turned into a `505 Internal Server Error` if not caught and changed before being caught by Vapor's AbortMiddleware. By default, this package will catch that error and convert it into a `400 Bad Request`. If you wish to disable this for development environments or throw your own error, you can override the following default implementation: +The error thrown by a failed `Node.extract` will be turned into a `500 Internal Server Error` if not caught and changed before being caught by Vapor's AbortMiddleware. By default, this package will catch that error and convert it into a `400 Bad Request`. If you wish to disable this for development environments or throw your own error, you can override the following default implementation: ```swift static func updateThrownError(_ error: Error) -> AbortError { // recreates the default behavior of `AbortMiddleware`. @@ -103,4 +103,4 @@ static func updateThrownError(_ error: Error) -> AbortError { This package is developed and maintained by the Vapor team at [Nodes](https://www.nodes.dk). ## 📄 License -This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT) \ No newline at end of file +This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)