updated status code of error messages