Fix: Api-Gateway ApiKeyAlreadyExists headers change. (#3162)
* Fix: Api-Gateway ApiKeyAlreadyExists headers change. * Added test for non decorator * Fixed cli errors * Fix:fixed build errors * Fix: assert only in case of non server mode Co-authored-by: usmankb <usman@krazybee.com>
This commit is contained in:
parent
0a89f9d1df
commit
bcf61d0b09
2 changed files with 18 additions and 1 deletions
|
|
@ -449,7 +449,7 @@ class APIGatewayResponse(BaseResponse):
|
|||
except ApiKeyAlreadyExists as error:
|
||||
return (
|
||||
error.code,
|
||||
self.headers,
|
||||
{},
|
||||
'{{"message":"{0}","code":"{1}"}}'.format(
|
||||
error.message, error.error_type
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue