getmoto/moto

Shield describe-subscription error response incorrect

zkarpinski opened this issue · 0 comments

The response errror for shield.DescribeSubscription for accounts without a subscription is incorrect.

Actual:

"SubscriptionNotFoundException",
"No Shield subscription has been created for this account",

Expected:
An error occurred (ResourceNotFoundException) when calling the DescribeSubscription operation: The subscription does not exist.

I'll update this

Ref:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/shield/client/describe_subscription.html