Skip to content

feat: Improve error handling#2449

Open
drozd0 wants to merge 1 commit into
tchiotludo:devfrom
drozd0:improve_error_handling
Open

feat: Improve error handling#2449
drozd0 wants to merge 1 commit into
tchiotludo:devfrom
drozd0:improve_error_handling

Conversation

@drozd0

@drozd0 drozd0 commented Aug 28, 2025

Copy link
Copy Markdown

Improve error handling by catching ConstraintViolationException and suppressing stacktraces

  • Catch ConstraintViolationException explicitly and return 400 (Bad Request) instead of a generic 500 (Internal Server Error).
  • Suppress stacktraces in response bodies to avoid leaking internal details. This is especially important for enterprise environments under compliance and security requirements.

… and suppressing the stacktrace in the response body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant