added the jsonResponse to the error block