From ed36a42f20758465d09961e8993911ca1d71f1c3 Mon Sep 17 00:00:00 2001 From: Vika Date: Fri, 15 Nov 2024 04:43:58 +0300 Subject: unauthorized -> not_authorized whoops Change-Id: I695c77b76806165af88935c37f40386923d95220 --- src/indieauth/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/indieauth') 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() } } -- cgit 1.4.1