Added error block in json response.