handle JSON API :meta key and validation errors