Implmented error codes