added errorhandler()

creates JSON response to 404 instead of standard HTML response