Move error codes in separate files.