get rid of endpoint to get exception json from controller