Merge pull request #2733 from griffint61/feature/lambda_get_function_ResourceNotFoundException

Added 'x-amzn-ErrorType' in the return header for missing lambda function
This commit is contained in:
Bert Blommers 2020-02-12 07:44:21 +00:00 committed by GitHub
commit 1b4d0b7a1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -295,7 +295,7 @@ class LambdaResponse(BaseResponse):
code["Configuration"]["FunctionArn"] += ":$LATEST"
return 200, {}, json.dumps(code)
else:
return 404, {}, "{}"
return 404, {"x-amzn-ErrorType": "ResourceNotFoundException"}, "{}"
def _get_aws_region(self, full_url):
region = self.region_regex.search(full_url)