Documented some return values in the case of errors.