forked from p15670423/monkey
Island: Update HTTP status code when RemovalError is encountered in ClearSimulationData
This commit is contained in:
parent
e34bb760e3
commit
d16b3e6bef
|
@ -24,7 +24,7 @@ class ClearSimulationData(AbstractResource):
|
||||||
self._credentials_repository.remove_stolen_credentials()
|
self._credentials_repository.remove_stolen_credentials()
|
||||||
except RemovalError as err:
|
except RemovalError as err:
|
||||||
make_response(
|
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)
|
return make_response({}, 200)
|
||||||
|
|
Loading…
Reference in New Issue