Return a json error obj, too.