Reinstated status code error checks