added a 404 errorhandler and adjusted web api