AppsController#run respond with json response on error