Skip to content

Lumen: Exception handling breaks HTTP response #11

@francescobianco

Description

@francescobianco

Labels: bug, lumen, error-handling
Context: Lumen 9.x (lightweight Laravel variant)

Description:
Unhandled exceptions from Openapi SDK are returned as HTML 500 pages instead of JSON. The SDK throws \Exception instead of domain-specific exceptions.

Expected:
Use structured exceptions implementing Throwable and compatible with Lumen’s JSON error formatter.

Impact:
API Gateway responses become inconsistent for frontend clients.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions