Skip to main content

json_error_response

Function json_error_response 

Source
pub fn json_error_response(
    status: u16,
    error_type: &str,
    message: &str,
) -> MockResponse
Expand description

Create an awsJson1.0/1.1 error response with __type and message fields.

Used by services like KMS, DynamoDB, SQS, SSM, Logs, etc.