Error codes

The following error codes and the possible failure points are described.