Skip to content

Function: inferFileSystemErrorCode()

inferFileSystemErrorCode(err): FileSystemErrorCode | undefined

Infer a FileSystemErrorCode from HTTP status / message tokens on an unknown thrown value (via error.errorContext).

Covers common SDK / REST wording so adapters do not reimplement the same “not found” / “already exists” checks. Returns undefined when nothing matches.

unknown

FileSystemErrorCode | undefined