Fix: Fixed undocumented return values in cases of errors