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
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
jsonfor 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