I'm trying to add a custom control of exceptions in FOSRestBundle but it seems to ignore my custom messages (the status code of the response is ok).
I have:
throw new HttpException(404, "User {$id} not found");
But get this json response:
{
"error": {
"code": 404,
"message": "Not Found"
}
}
So I don't find the way to show my custom message