From d59fafebf6b1a23f28c136904694fc4380bffc95 Mon Sep 17 00:00:00 2001 From: Yukino Song Date: Tue, 17 Sep 2024 15:07:26 +0800 Subject: [PATCH] Fix status code --- README.md | 4 +--- src/nvhttp.cpp | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 25c23bcf..0ef860a2 100644 --- a/README.md +++ b/README.md @@ -135,9 +135,7 @@ No real time chat support will ever be provided for Apollo and Artemis. Includin - QQ - WeChat -> When there's a chat, there're dramas. -> -> ---- Confucius +> When there's a chat, there're dramas. -- Confucius ## Downloads diff --git a/src/nvhttp.cpp b/src/nvhttp.cpp index 2cb194a3..7949dc8f 100644 --- a/src/nvhttp.cpp +++ b/src/nvhttp.cpp @@ -996,7 +996,7 @@ namespace nvhttp { BOOST_LOG(debug) << "Permission LaunchApp denied for [" << named_cert_p->name << "] (" << (uint32_t)named_cert_p->perm << ")"; tree.put("root.resume", 0); - tree.put("root..status_code", 503); + tree.put("root..status_code", 403); tree.put("root..status_message", "Permission denied"); return; @@ -1104,7 +1104,7 @@ namespace nvhttp { BOOST_LOG(debug) << "Permission ViewApp denied for [" << named_cert_p->name << "] (" << (uint32_t)named_cert_p->perm << ")"; tree.put("root.resume", 0); - tree.put("root..status_code", 503); + tree.put("root..status_code", 403); tree.put("root..status_message", "Permission denied"); return; @@ -1205,7 +1205,7 @@ namespace nvhttp { BOOST_LOG(debug) << "Permission CancelApp denied for [" << named_cert_p->name << "] (" << (uint32_t)named_cert_p->perm << ")"; tree.put("root.resume", 0); - tree.put("root..status_code", 503); + tree.put("root..status_code", 403); tree.put("root..status_message", "Permission denied"); return;