Skip to content

How To Customize Error Handler Response #246

@hasanparasteh

Description

@hasanparasteh

Currently X framework always return an HTML error for 500, 405 and etc. I think it's a good idea to create an API in order to change the behavior and customize it. for example we want to return json for every 500, 405 and etc errors.

schema would be like:

{
    "result": false,
    "message": "error message goes here"
}

There's no documents about these kind of configurations and I didn't find it anywhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions