The "actual" change--definition of a decorator that wraps api calls, and returns a JSON error.