added error codes
Merge branch 'master' of https://github.com/tianyuzhang/cs454a3