document the error codes