Add common error codes.
Merge pull request #5 from HeiaHeia/add-common-error-codes

Add common error codes.