Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 15c7e38

Browse files
authored
Merge pull request #140 from A-Shevchenko/patch-2
Update set-up-lambda-proxy-integrations.md
2 parents 660da73 + 4e52247 commit 15c7e38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc_source/set-up-lambda-proxy-integrations.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ In Lambda proxy integration, API Gateway maps the entire client request to the i
452452
In the input:
453453
The `headers` key can only contain single\-value headers\.
454454
The `multiValueHeaders` key can contain multi\-value headers as well as single\-value headers\.
455-
If you specify values for both `headers` and `multiValueHeaders`, API Gateway merges them into a single list\. If the same key\-value pair is specified in both, only the values from `multiValueHeaders` will appear in the merged list\.
456455

457456
In the input to the backend Lambda function, the `requestContext` object is a map of key\-value pairs\. In each pair, the key is the name of a [$context](api-gateway-mapping-template-reference.md#context-variable-reference) variable property, and the value is the value of that property\. API Gateway may add new keys to the map\.
458457

@@ -496,4 +495,4 @@ To return a response in a Lambda function in Node\.js, you can use commands such
496495
In a Lambda `async` function in Node\.js, the equivalent syntax would be:
497496
+ To return a successful result, call `return {"statusCode": 200, "body": "results"}`\.
498497
+ To throw an exception, call `throw new Error("internal server error")`\.
499-
+ For a client\-side error \(if, for example, a required parameter is missing\), you can call `return {"statusCode": 400, "body": "Missing parameters of ..."}` to return the error without throwing an exception\.
498+
+ For a client\-side error \(if, for example, a required parameter is missing\), you can call `return {"statusCode": 400, "body": "Missing parameters of ..."}` to return the error without throwing an exception\.

0 commit comments

Comments
 (0)