Skip to content

Error handling

Provide consistent, structured, observable error contracts across services.

  • RFC 7807 / Problem Details responses
  • Central exception mapping
  • Consistent status-code selection
  • Correlation and contextual metadata
  • Logging integration
  • Sanitized client-facing details
  • Extensible domain-specific problem information
  • Testable error behavior

Siemens.AspNet.ErrorHandling documents the use of RFC 7807 to provide consistent and interpretable error responses.

Centralized error handling separates endpoint code from protocol mechanics and ensures that observability, client contracts, and security rules evolve consistently.