Skip to main content

Module error

Module error 

Source

Functions§

json_error_response
Build an AWS JSON error response (used by JSON protocol services: SSM, EventBridge, etc.).
json_error_response_with_fields
Build an AWS JSON error response carrying additional top-level members (e.g. DynamoDB’s ConditionalCheckFailedException.Item). Each field value is parsed as JSON when possible (so an object/array is embedded as-is) and otherwise emitted as a JSON string.
s3_xml_error_response
Build an S3-style XML error response. S3 uses <Error> (not <ErrorResponse>) with different field ordering.
s3_xml_error_response_with_fields
Build an S3-style XML error response with additional fields (e.g., BucketName, Key).
xml_error_response
Build an AWS XML error response (used by Query protocol services: SQS, SNS, IAM, STS).