Skip to content

🟡 [FEATURE] Add proper error handling and consistent HTTP status codes #14

Description

@github-actions

Description

Error handling is inconsistent across the API. Some errors return 500 with stack traces, others return null, and some throw uncaught exceptions.

Requirements

  • Add @ControllerAdvice for global exception handling
  • Return proper HTTP status codes (400, 404, 409, 422, 500)
  • Consistent error response format (code, message, details)
  • Never expose stack traces in production
  • Log all errors with correlation IDs

Files Affected

  • Need new: GlobalExceptionHandler.java
  • All controllers need review

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions