Added 'x-amzn-ErrorType' in return header from lambda:get_function for missing function

This commit is contained in:
Terry Griffin 2020-02-06 15:26:20 -08:00
commit b4c9b76ca9
2 changed files with 3 additions and 3 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)