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:
commit
1b4d0b7a1d
3 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue