Added errcodes to failure messages