# HG changeset patch # User Kim Alvefur # Date 1681116263 -7200 # Node ID 53c6f49dcbb8b0854af6b9bbc51b5051800ddcfb # Parent 3c51eab0afe8104375ed38d171cc08b1b8501c1d mod_http_oauth2: Correct error code when missing credentials for userinfo diff -r 3c51eab0afe8 -r 53c6f49dcbb8 mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Sat Apr 08 19:51:24 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Mon Apr 10 10:44:23 2023 +0200 @@ -750,7 +750,7 @@ local request = event.request; local credentials = get_request_credentials(request); if not credentials or not credentials.bearer_token then - return 400; + return 401; end local token_info = tokens.get_token_info(credentials.bearer_token); if not token_info then