Getting the error codes right.