Skip to main content

Module response

Module response 

Source
Expand description

CloudWatch Logs response serialization and error formatting.

Constants§

CONTENT_TYPE
Content type for CloudWatch Logs JSON responses (awsJson1_1).

Functions§

error_to_json
Serialize a CloudWatch Logs error into a JSON response body.
error_to_response
Convert a LogsError into a complete HTTP error response.
json_response
Build a success response from JSON bytes.