Fix status code

This commit is contained in:
Yukino Song
2024-09-17 15:07:26 +08:00
parent 0bfbaf2884
commit d59fafebf6
2 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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.<xmlattr>.status_code", 503);
tree.put("root.<xmlattr>.status_code", 403);
tree.put("root.<xmlattr>.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.<xmlattr>.status_code", 503);
tree.put("root.<xmlattr>.status_code", 403);
tree.put("root.<xmlattr>.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.<xmlattr>.status_code", 503);
tree.put("root.<xmlattr>.status_code", 403);
tree.put("root.<xmlattr>.status_message", "Permission denied");
return;