diff options
Diffstat (limited to 'src/routes/not_understood.rs')
| -rw-r--r-- | src/routes/not_understood.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/not_understood.rs b/src/routes/not_understood.rs index c94e6e2..4e30361 100644 --- a/src/routes/not_understood.rs +++ b/src/routes/not_understood.rs @@ -6,7 +6,10 @@ pub fn not_understood(req: HttpRequest) -> JsonMessage<NotUnderstood> { path: destruct_path(req.path()), }; - Ok(Json(message.as_outgoing())) + Ok(FormatMsg { + message: message.as_outgoing(), + code: StatusCode::NOT_FOUND, + }) } #[cfg(test)] |
