exercises - added util route for api error