why are you checking for `422` code?