Files
floci/src
Matt Van HornandMatt Van Horn 2c746b25a1 fix(cloudwatch): return ResourceNotFound for SetAlarmState on missing alarm (#1621)
* fix: return ResourceNotFound 400 for SetAlarmState on missing alarm

* fix: use CloudWatch ResourceNotFound error code for missing alarm

* fix: use HTTP 404 for CloudWatch ResourceNotFound

Per @hectorvent's review: the CloudWatch service model (botocore
cloudwatch/2010-08-01 service-2.json) declares the ResourceNotFound shape with
httpStatusCode 404, so correct the AwsException status from 400 to 404 for the
missing-alarm SetAlarmState path and update the test assertion to match.

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
2026-07-06 21:35:55 -05:00
..