From 0e04aa2879bc9a40afaf0266f60f572c7906abd5 Mon Sep 17 00:00:00 2001 From: SphericalKat Date: Thu, 17 Dec 2020 21:26:00 +0530 Subject: [PATCH] fix(catchers): return appropriate http status for internal server errors Signed-off-by: SphericalKat --- src/api/catchers/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/catchers/mod.rs b/src/api/catchers/mod.rs index 22e8fe5..110756f 100644 --- a/src/api/catchers/mod.rs +++ b/src/api/catchers/mod.rs @@ -52,7 +52,7 @@ pub fn forbidden() -> status::Custom> { #[catch(500)] pub fn internal_server_error() -> status::Custom> { status::Custom( - Status::NotFound, + Status::InternalServerError, Json(json!({ "err":"internal server error", "msg": "Something went wrong, try again"