JSON Decode error for Error-Response cases, patched up