return FileInvalidStatus on error