awsim-datasync 0.5.0

AWS DataSync emulator for AWSim
Documentation
1
2
3
4
5
6
7
8
9
//! DataSync error helpers. The Smithy model declares
//! `InvalidRequestException` (400) and `InternalException` (400) only;
//! every error surfaces with HTTP 400.

use awsim_core::AwsError;

pub fn invalid_request(message: impl Into<String>) -> AwsError {
    AwsError::bad_request("InvalidRequestException", message)
}