Hi i need to throw custom errors with custom status.The response status should be always 200 /201.Please help me to reslove this issue.Current status in given below
{
"timestamp": "2017-03-30T05:59:56.010+0000",
"status": 400,
"error": "Bad Request",
"exception": "custom exception",
"message": "custom message",
"path": "/api/sjsdj"
}
What i expect as response is
{
"timestamp": "2017-03-30T05:59:56.010+0000",
"status": 600,
"error": "custom error",
"exception": "web.rest.errors.custom exception",
"message": "custom message",
"path": "/api/hgdsh/3"
}