Island: Update HTTP status code when RemovalError is encountered in ClearSimulationData

This commit is contained in:
Shreya Malviya 2022-07-07 08:22:52 -07:00
parent e34bb760e3
commit d16b3e6bef
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class ClearSimulationData(AbstractResource):
self._credentials_repository.remove_stolen_credentials()
except RemovalError as err:
make_response(
{"error": f"Error encountered while removing stolen credentials: {err}"}, 400
{"error": f"Error encountered while removing stolen credentials: {err}"}, 500
)
return make_response({}, 200)