Skip to content

Instantly share code, notes, and snippets.

@martyca
Created September 3, 2020 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martyca/61a75b49f42506a59fadba2c0884ce22 to your computer and use it in GitHub Desktop.
Save martyca/61a75b49f42506a59fadba2c0884ce22 to your computer and use it in GitHub Desktop.
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