Skip to content

Instantly share code, notes, and snippets.

@martyca
Created September 3, 2020 07:48
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/e12da7d055425024472a44fd3090cf76 to your computer and use it in GitHub Desktop.
Save martyca/e12da7d055425024472a44fd3090cf76 to your computer and use it in GitHub Desktop.
def lambda_handler(event, context):
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