public boolean isValid() {
		try {
			//状态码401
			if(code==401){
				Map<String, Object> detailMap = JacksonMapper.getInstance().readValue(body.toString(), Map.class);
				String errorMessage = (String)detailMap.get("error");
				//error值为unauthorized
				if("unauthorized".equalsIgnoreCase(errorMessage)){
					return false;
				}
			}
		} catch (JsonParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (JsonMappingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}//body信息转化为map
		if(code == 200){
			return true;
		}
		return false;
	}