Expand description
API Gateway v2 response serialization and error formatting.
API Gateway v2 uses a JSON body with a lowercase message field:
{"message": "..."}
Constants§
- CONTENT_
TYPE - Content type for API Gateway v2 JSON responses.
Functions§
- empty_
response - Build an empty response with the given status code.
- error_
to_ response - Convert an
ApiGatewayV2Errorinto a complete HTTP error response. - json_
response - Build a JSON success response with the given status code.