Added json response when an error will occur