better failure JSON