diff options
Diffstat (limited to '')
-rw-r--r-- | web/server/web_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/server/web_client.c b/web/server/web_client.c index 92d97e8a..456de689 100644 --- a/web/server/web_client.c +++ b/web/server/web_client.c @@ -22,8 +22,8 @@ inline int web_client_bearer_required(struct web_client *w) { w->response.data->content_type = CT_TEXT_PLAIN; buffer_flush(w->response.data); buffer_strcat(w->response.data, "An authorization bearer is required to access the resource."); - w->response.code = HTTP_RESP_UNAUTHORIZED; - return HTTP_RESP_UNAUTHORIZED; + w->response.code = HTTP_RESP_PRECOND_FAIL; + return HTTP_RESP_PRECOND_FAIL; } static inline int bad_request_multiple_dashboard_versions(struct web_client *w) { |