Skip to content

How To Customize Error Handler Response #246

Closed

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

Activity

  1. Repository owner locked and limited conversation to collaborators on Mar 5, 2024
  2. converted this issue into a discussion #249 on Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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