Add json response to raised error