How to use the @staticdeploy/core.ArchiveExtractionError function in @staticdeploy/core

To help you get started, we’ve selected a few @staticdeploy/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github staticdeploy / staticdeploy / http-adapters / src / managementApiAdapter / handleUsecaseErrors.ts View on Github external
[sd.NoUserCorrespondingToIdpUserError, 403],
    [sd.MissingRoleError, 403],
    // Configuration errors
    [sd.ConfigurationNotValidError, 400],
    // App errors
    [sd.AppNameNotValidError, 400],
    [sd.AppNotFoundError, 404],
    [sd.ConflictingAppError, 409],
    [sd.AppHasEntrypointsError, 409],
    // Bundle errors
    [sd.BundleNameOrTagNotValidError, 400],
    [sd.BundleNameTagCombinationNotValidError, 400],
    [sd.BundleFallbackAssetNotFoundError, 400],
    [sd.BundleNotFoundError, 404],
    [sd.BundlesInUseError, 409],
    [sd.ArchiveExtractionError, 400],
    // Entrypoint errors
    [sd.EntrypointUrlMatcherNotValidError, 400],
    [sd.EntrypointNotFoundError, 404],
    [sd.ConflictingEntrypointError, 409],
    [sd.EntrypointMismatchedAppIdError, 400],
    // Endpoint response errors
    [sd.NoMatchingEntrypointError, 404],
    [sd.NoBundleOrRedirectToError, 404],
    // Group errors
    [sd.GroupNotFoundError, 404],
    [sd.SomeGroupNotFoundError, 404],
    [sd.ConflictingGroupError, 409],
    [sd.GroupHasUsersError, 409],
    // User errors
    [sd.UserNotFoundError, 404],
    [sd.ConflictingUserError, 409],