9f54ca
Add a new decorator to catch the APIError thrown in the API code This way we have a clean way to returning errors to the user