Added 421 error check