Created
September 3, 2020 07:47
-
-
Save martyca/61a75b49f42506a59fadba2c0884ce22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = async (event) => { | |
const response = { | |
"statusCode": 401, | |
"statusDescription": "401 Unauthorized", | |
"headers": { | |
"WWW-Authenticate": "Basic" | |
}, | |
"body": "Unauthorized" | |
} | |
return response; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment