Zum Hauptinhalt springen

FileErrorCodes

Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.Files

Stable error codes of the file API. REST answers carry them as the code extension of the problem details, GraphQL answers as extensions.code of the error.

public static class FileErrorCodes

Inheritance Object → FileErrorCodes

Fields​

RootNotFound​

The folder root does not exist (404).

public static string RootNotFound;

PathNotFound​

The path or rtId does not exist or is hidden by data permissions (404).

public static string PathNotFound;

AmbiguousPath​

Legacy duplicate names in a folder; address the entry by rtId (409).

public static string AmbiguousPath;

NameConflict​

The name exists already in the folder (409).

public static string NameConflict;

InvalidName​

The name is invalid (400).

public static string InvalidName;

ReservedName​

The well-known name is reserved for a route segment (409).

public static string ReservedName;

ProtectedRoot​

The root belongs to a service or a blueprint and cannot be renamed or deleted (409).

public static string ProtectedRoot;

Forbidden​

Denied by data permissions or missing role (403).

public static string Forbidden;

NotAFolder​

The entry is not a folder (409).

public static string NotAFolder;

NotAFile​

The entry is not a file (409).

public static string NotAFile;

MoveIntoItself​

A folder cannot be moved into itself or below itself (409).

public static string MoveIntoItself;

LimitExceeded​

Upload size or zip limits exceeded (REST, 413); on GraphQL the delete cap (MaxDeleteEntries, default 2,000 entries; mapped to 409).

public static string LimitExceeded;

InvalidRequest​

The request is invalid (400); on GraphQL also the single-parent rule: a move must DELETE the current parent together with the CREATE of the new one.

public static string InvalidRequest;

Unknown​

The server answered an error without a file API code.

public static string Unknown;

Methods​

StatusOf(String)​

internal static HttpStatusCode StatusOf(string code)

Parameters​

code String

Returns​

HttpStatusCode

StatusOfGraphQl(String)​

Status for a GraphQL error (which travels with HTTP 200): like REST, except LIMIT_EXCEEDED — on GraphQL it is the server's delete cap (MaxDeleteEntries, answered 409), not a payload size, so 409 and not 413.

internal static HttpStatusCode StatusOfGraphQl(string code)

Parameters​

code String

Returns​

HttpStatusCode

FallbackFor(HttpStatusCode)​

internal static string FallbackFor(HttpStatusCode status)

Parameters​

status HttpStatusCode

Returns​

String