Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

24.4 KB
Raw Blame
// This file is auto-generated by scripts/add-orpc-error-maps.ts
import * as z from 'zod'

const zErrorResponse = /* @__PURE__ */ (() =>
  z.object({
    code: z.string(),
    details: z.record(z.string(), z.unknown()).optional(),
    message: z.string(),
    params: z.string().optional(),
    status: z.int(),
  }))()

const zAgentNotFoundError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_not_found_error'),
      status: z.literal(404),
    }),
  ))()

const zAgentNameConflictError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_name_conflict_error'),
      status: z.literal(409),
    }),
  ))()

const zAgentNotPublishedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_not_published'),
      status: z.literal(409),
    }),
  ))()

const zMaxKeysExceededError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('max_keys_exceeded'),
      status: z.literal(400),
    }),
  ))()

const zAppUnavailableError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('app_unavailable'),
      status: z.literal(400),
    }),
  ))()

const zCompletionRequestError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('completion_request_error'),
      status: z.literal(400),
    }),
  ))()

const zModelCurrentlyNotSupportError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('model_currently_not_support'),
      status: z.literal(400),
    }),
  ))()

const zNoAudioUploadedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('no_audio_uploaded'),
      status: z.literal(400),
    }),
  ))()

const zProviderNotInitializeError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('provider_not_initialize'),
      status: z.literal(400),
    }),
  ))()

const zProviderNotSupportSpeechToTextError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('provider_not_support_speech_to_text'),
      status: z.literal(400),
    }),
  ))()

const zProviderQuotaExceededError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('provider_quota_exceeded'),
      status: z.literal(400),
    }),
  ))()

const zSpeechToTextDisabledError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('speech_to_text_disabled'),
      status: z.literal(400),
    }),
  ))()

const zAgentVersionNotFoundError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_version_not_found_error'),
      status: z.literal(404),
    }),
  ))()

const zAudioTooLargeError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('audio_too_large'),
      status: z.literal(413),
    }),
  ))()

const zUnsupportedAudioTypeError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('unsupported_audio_type'),
      status: z.literal(415),
    }),
  ))()

const zRateLimitError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('rate_limit_error'),
      status: z.literal(429),
    }),
  ))()

const zAgentBuildSandboxNotFoundError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_build_sandbox_not_found'),
      status: z.literal(404),
    }),
  ))()

const zAgentSoulLockedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_soul_locked_error'),
      status: z.literal(400),
    }),
  ))()

const zInvalidComposerConfigError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('invalid_composer_config_error'),
      status: z.literal(400),
    }),
  ))()

const zPlaintextSecretNotAllowedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('plaintext_secret_not_allowed_error'),
      status: z.literal(400),
    }),
  ))()

const zAgentHomeSnapshotTooLargeError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_home_snapshot_too_large'),
      status: z.literal(413),
    }),
  ))()

const zAgentHomeSnapshotCreateFailedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_home_snapshot_create_failed'),
      status: z.literal(502),
    }),
  ))()

const zAppSuggestedQuestionsAfterAnswerDisabledError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('app_suggested_questions_after_answer_disabled'),
      status: z.literal(403),
    }),
  ))()

const zMessageFeedbackRatingRequiredError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('message_feedback_rating_required'),
      status: z.literal(400),
    }),
  ))()

const zAgentModelNotConfiguredError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_model_not_configured'),
      status: z.literal(400),
    }),
  ))()

const zNoActiveBindingError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('no_active_binding'),
      status: z.literal(404),
    }),
  ))()

const zAgentBackendUnreachableError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('agent_backend_unreachable'),
      status: z.literal(502),
    }),
  ))()

const zInspectorUnavailableError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('inspector_unavailable'),
      status: z.literal(503),
    }),
  ))()

const zBindingFileDownloadUnavailableError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('binding_file_download_unavailable'),
      status: z.literal(502),
    }),
  ))()

const zProviderNotSupportTextToSpeechError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('provider_not_support_text_to_speech'),
      status: z.literal(400),
    }),
  ))()

const zInvalidTracingConfigError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('invalid_tracing_config'),
      status: z.literal(400),
    }),
  ))()

const zTracingProviderUnavailableError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_provider_unavailable'),
      status: z.literal(400),
    }),
  ))()

const zUnsupportedTracingProviderError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('unsupported_tracing_provider'),
      status: z.literal(400),
    }),
  ))()

const zTraceConfigNotFoundError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('trace_config_not_found'),
      status: z.literal(404),
    }),
  ))()

const zTracingConfigConflictError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_config_conflict'),
      status: z.literal(409),
    }),
  ))()

const zTracingConfigProcessingFailedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_config_processing_failed'),
      status: z.literal(500),
    }),
  ))()

const zAppNotFoundError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('app_not_found'),
      status: z.literal(404),
    }),
  ))()

const zTracingConfigVerificationFailedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_config_verification_failed'),
      status: z.literal(400),
    }),
  ))()

const zTraceConfigAlreadyExistsError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('trace_config_already_exists'),
      status: z.literal(409),
    }),
  ))()

const zTracingNodeNotFoundError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_node_not_found'),
      status: z.literal(404),
    }),
  ))()

const zTracingSourceNotFoundError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_source_not_found'),
      status: z.literal(404),
    }),
  ))()

const zTracingRunNotFoundError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_run_not_found'),
      status: z.literal(404),
    }),
  ))()

const zTracingAlreadyAcceptedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_already_accepted'),
      status: z.literal(409),
    }),
  ))()

const zTracingDuplicateAcknowledgementRequiredError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_duplicate_acknowledgement_required'),
      status: z.literal(409),
    }),
  ))()

const zTracingRetryNotAllowedError = /* @__PURE__ */ (() =>
  zErrorResponse.and(
    z.object({
      code: z.literal('tracing_retry_not_allowed'),
      status: z.literal(409),
    }),
  ))()

export const get2Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const postErrors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_not_published: { status: 409, data: zAgentNotPublishedError },
}

export const post2Errors = {
  agent_not_published: { status: 409, data: zAgentNotPublishedError },
  max_keys_exceeded: { status: 400, data: zMaxKeysExceededError },
}

export const post3Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
  app_unavailable: { status: 400, data: zAppUnavailableError },
  audio_too_large: { status: 413, data: zAudioTooLargeError },
  completion_request_error: { status: 400, data: zCompletionRequestError },
  model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
  no_audio_uploaded: { status: 400, data: zNoAudioUploadedError },
  provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
  provider_not_support_speech_to_text: { status: 400, data: zProviderNotSupportSpeechToTextError },
  provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
  speech_to_text_disabled: { status: 400, data: zSpeechToTextDisabledError },
  unsupported_audio_type: { status: 415, data: zUnsupportedAudioTypeError },
}

export const post4Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  app_unavailable: { status: 400, data: zAppUnavailableError },
  completion_request_error: { status: 400, data: zCompletionRequestError },
  model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
  provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
  provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
  rate_limit_error: { status: 429, data: zRateLimitError },
}

export const post5Errors = {
  agent_build_sandbox_not_found: { status: 404, data: zAgentBuildSandboxNotFoundError },
  agent_home_snapshot_create_failed: { status: 502, data: zAgentHomeSnapshotCreateFailedError },
  agent_home_snapshot_too_large: { status: 413, data: zAgentHomeSnapshotTooLargeError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
  invalid_composer_config_error: { status: 400, data: zInvalidComposerConfigError },
  plaintext_secret_not_allowed_error: { status: 400, data: zPlaintextSecretNotAllowedError },
}

export const post6Errors = {
  agent_build_sandbox_not_found: { status: 404, data: zAgentBuildSandboxNotFoundError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
}

export const delete2Errors = {
  agent_build_sandbox_not_found: { status: 404, data: zAgentBuildSandboxNotFoundError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
}

export const get4Errors = {
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
}

export const putErrors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_soul_locked_error: { status: 400, data: zAgentSoulLockedError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
}

export const get5Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
  app_suggested_questions_after_answer_disabled: {
    status: 403,
    data: zAppSuggestedQuestionsAfterAnswerDisabledError,
  },
  app_unavailable: { status: 400, data: zAppUnavailableError },
  completion_request_error: { status: 400, data: zCompletionRequestError },
  model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
  provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
  provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
}

export const post7Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get6Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  app_unavailable: { status: 400, data: zAppUnavailableError },
}

export const get7Errors = {
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
}

export const post8Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_soul_locked_error: { status: 400, data: zAgentSoulLockedError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
  invalid_composer_config_error: { status: 400, data: zInvalidComposerConfigError },
  plaintext_secret_not_allowed_error: { status: 400, data: zPlaintextSecretNotAllowedError },
}

export const get8Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
}

export const put2Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_soul_locked_error: { status: 400, data: zAgentSoulLockedError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
  invalid_composer_config_error: { status: 400, data: zInvalidComposerConfigError },
  plaintext_secret_not_allowed_error: { status: 400, data: zPlaintextSecretNotAllowedError },
}

export const post9Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get9Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get10Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const delete3Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get11Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const post10Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get12Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const post11Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get13Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get14Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get15Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get16Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get17Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const delete4Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get18Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const post12Errors = {
  agent_name_conflict_error: { status: 409, data: zAgentNameConflictError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
}

export const post13Errors = {
  agent_build_sandbox_not_found: { status: 404, data: zAgentBuildSandboxNotFoundError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
}

export const post14Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const post15Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  app_unavailable: { status: 400, data: zAppUnavailableError },
  message_feedback_rating_required: { status: 400, data: zMessageFeedbackRatingRequiredError },
}

export const get19Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get20Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get21Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get22Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  app_unavailable: { status: 400, data: zAppUnavailableError },
}

export const post16Errors = {
  agent_model_not_configured: { status: 400, data: zAgentModelNotConfiguredError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
  invalid_composer_config_error: { status: 400, data: zInvalidComposerConfigError },
  plaintext_secret_not_allowed_error: { status: 400, data: zPlaintextSecretNotAllowedError },
}

export const get23Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const post17Errors = {
  agent_backend_unreachable: { status: 502, data: zAgentBackendUnreachableError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  binding_file_download_unavailable: { status: 502, data: zBindingFileDownloadUnavailableError },
  inspector_unavailable: { status: 503, data: zInspectorUnavailableError },
  no_active_binding: { status: 404, data: zNoActiveBindingError },
}

export const get24Errors = {
  agent_backend_unreachable: { status: 502, data: zAgentBackendUnreachableError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  inspector_unavailable: { status: 503, data: zInspectorUnavailableError },
  no_active_binding: { status: 404, data: zNoActiveBindingError },
}

export const get25Errors = {
  agent_backend_unreachable: { status: 502, data: zAgentBackendUnreachableError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  inspector_unavailable: { status: 503, data: zInspectorUnavailableError },
  no_active_binding: { status: 404, data: zNoActiveBindingError },
}

export const get26Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  no_active_binding: { status: 404, data: zNoActiveBindingError },
}

export const get27Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get28Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  completion_request_error: { status: 400, data: zCompletionRequestError },
  model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
  provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
  provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
}

export const post18Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  app_unavailable: { status: 400, data: zAppUnavailableError },
  completion_request_error: { status: 400, data: zCompletionRequestError },
  model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
  provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
  provider_not_support_text_to_speech: { status: 400, data: zProviderNotSupportTextToSpeechError },
  provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
}

export const post19Errors = {
  invalid_tracing_config: { status: 400, data: zInvalidTracingConfigError },
  trace_config_not_found: { status: 404, data: zTraceConfigNotFoundError },
  tracing_config_conflict: { status: 409, data: zTracingConfigConflictError },
  tracing_config_processing_failed: { status: 500, data: zTracingConfigProcessingFailedError },
  tracing_provider_unavailable: { status: 400, data: zTracingProviderUnavailableError },
  unsupported_tracing_provider: { status: 400, data: zUnsupportedTracingProviderError },
}

export const get30Errors = {
  tracing_provider_unavailable: { status: 400, data: zTracingProviderUnavailableError },
  unsupported_tracing_provider: { status: 400, data: zUnsupportedTracingProviderError },
}

export const delete5Errors = {
  app_not_found: { status: 404, data: zAppNotFoundError },
  trace_config_not_found: { status: 404, data: zTraceConfigNotFoundError },
  tracing_config_processing_failed: { status: 500, data: zTracingConfigProcessingFailedError },
  unsupported_tracing_provider: { status: 400, data: zUnsupportedTracingProviderError },
}

export const get31Errors = {
  app_not_found: { status: 404, data: zAppNotFoundError },
  tracing_config_processing_failed: { status: 500, data: zTracingConfigProcessingFailedError },
  tracing_provider_unavailable: { status: 400, data: zTracingProviderUnavailableError },
  unsupported_tracing_provider: { status: 400, data: zUnsupportedTracingProviderError },
}

export const patchErrors = {
  app_not_found: { status: 404, data: zAppNotFoundError },
  invalid_tracing_config: { status: 400, data: zInvalidTracingConfigError },
  trace_config_not_found: { status: 404, data: zTraceConfigNotFoundError },
  tracing_config_conflict: { status: 409, data: zTracingConfigConflictError },
  tracing_config_processing_failed: { status: 500, data: zTracingConfigProcessingFailedError },
  tracing_config_verification_failed: { status: 400, data: zTracingConfigVerificationFailedError },
  tracing_provider_unavailable: { status: 400, data: zTracingProviderUnavailableError },
  unsupported_tracing_provider: { status: 400, data: zUnsupportedTracingProviderError },
}

export const post20Errors = {
  app_not_found: { status: 404, data: zAppNotFoundError },
  invalid_tracing_config: { status: 400, data: zInvalidTracingConfigError },
  trace_config_already_exists: { status: 409, data: zTraceConfigAlreadyExistsError },
  tracing_config_processing_failed: { status: 500, data: zTracingConfigProcessingFailedError },
  tracing_config_verification_failed: { status: 400, data: zTracingConfigVerificationFailedError },
  tracing_provider_unavailable: { status: 400, data: zTracingProviderUnavailableError },
  unsupported_tracing_provider: { status: 400, data: zUnsupportedTracingProviderError },
}

export const post21Errors = {
  tracing_already_accepted: { status: 409, data: zTracingAlreadyAcceptedError },
  tracing_duplicate_acknowledgement_required: {
    status: 409,
    data: zTracingDuplicateAcknowledgementRequiredError,
  },
  tracing_node_not_found: { status: 404, data: zTracingNodeNotFoundError },
  tracing_retry_not_allowed: { status: 409, data: zTracingRetryNotAllowedError },
  tracing_run_not_found: { status: 404, data: zTracingRunNotFoundError },
  tracing_source_not_found: { status: 404, data: zTracingSourceNotFoundError },
}

export const get32Errors = {
  tracing_node_not_found: { status: 404, data: zTracingNodeNotFoundError },
  tracing_source_not_found: { status: 404, data: zTracingSourceNotFoundError },
}

export const post22Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
}

export const get33Errors = {
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
  agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
}

export const get34Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const delete6Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const get35Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const put3Errors = {
  agent_name_conflict_error: { status: 409, data: zAgentNameConflictError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
}

export const get36Errors = { agent_not_found_error: { status: 404, data: zAgentNotFoundError } }

export const post23Errors = {
  agent_name_conflict_error: { status: 409, data: zAgentNameConflictError },
  agent_not_found_error: { status: 404, data: zAgentNotFoundError },
}