Skip to main content
Transformation and restoration failures are atomic: DataFog Core returns no partially transformed result.

Error fields

Error messages and metadata do not include matched PII, key material, credentials, token payloads, or restored plaintext.

Error codes

Request validation

  • invalid_configuration
  • invalid_finding

Key providers

  • key_provider_required
  • key_not_found
  • key_access_denied
  • key_provider_unavailable
  • invalid_key_material
  • key_provider_error

Token providers and envelopes

  • token_provider_required
  • invalid_token
  • unsupported_token_version
  • token_not_found
  • token_expired
  • token_access_denied
  • invalid_token_material
  • token_provider_unavailable
  • token_provider_error

Capability and engine failures

  • unsupported_strategy
  • internal_error

JavaScript example

Python example

Branch on code and reason, not on the human-readable message.