From 965dc806c5577fea89f1fcf78e3cdfcbff84b65f Mon Sep 17 00:00:00 2001 From: mickeypash Date: Fri, 19 May 2017 23:30:29 +0100 Subject: [PATCH] Fix the error code for IAMNotFoundException to NoSuchEntity used by AWS. --- moto/iam/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/iam/exceptions.py b/moto/iam/exceptions.py index b4d89c0f2..84f15f51f 100644 --- a/moto/iam/exceptions.py +++ b/moto/iam/exceptions.py @@ -7,7 +7,7 @@ class IAMNotFoundException(RESTError): def __init__(self, message): super(IAMNotFoundException, self).__init__( - "Not Found", message) + "NoSuchEntity", message) class IAMConflictException(RESTError):