about summary refs log tree commit diff
path: root/src/indieauth/mod.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-11-15 04:43:58 +0300
committerVika <vika@fireburn.ru>2024-11-15 04:43:58 +0300
commited36a42f20758465d09961e8993911ca1d71f1c3 (patch)
treef63515a0363fb34a4aacb024018e7948f5b8d784 /src/indieauth/mod.rs
parent42506c91065cd69bd03ce68715662dd898e2181f (diff)
downloadkittybox-ed36a42f20758465d09961e8993911ca1d71f1c3.tar.zst
unauthorized -> not_authorized HEAD main
whoops

Change-Id: I695c77b76806165af88935c37f40386923d95220
Diffstat (limited to 'src/indieauth/mod.rs')
-rw-r--r--src/indieauth/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indieauth/mod.rs b/src/indieauth/mod.rs
index b3db77f..0ac3dfd 100644
--- a/src/indieauth/mod.rs
+++ b/src/indieauth/mod.rs
@@ -59,7 +59,7 @@ impl axum::response::IntoResponse for IndieAuthResourceError {
             InvalidToken => (
                 StatusCode::UNAUTHORIZED,
                 [("WWW-Authenticate", "Bearer, error=\"invalid_token\"")],
-                Json(&serde_json::json!({"error": "unauthorized"}))
+                Json(&serde_json::json!({"error": "not_authorized"}))
             ).into_response()
         }
     }