A response is "shaped" when it has a numeric statusCode property —
the definitive marker of an API-Gateway-style response envelope.
Missing headers or body are defaulted by shapeResponse
rather than treated as "unshaped", because { statusCode, headers }
(no body) is a valid Lambda Proxy return value.
Detect a shaped Lambda Proxy response.
A response is "shaped" when it has a numeric
statusCodeproperty — the definitive marker of an API-Gateway-style response envelope. Missingheadersorbodyare defaulted by shapeResponse rather than treated as "unshaped", because{ statusCode, headers }(no body) is a valid Lambda Proxy return value.