code: private void extractMessage(JsonObject object) {
          // Prefer to pull the message out of meta
          JsonObject meta = object.getAsJsonObject("meta");
          if (meta != null) {
              JsonPrimitive msg = meta.getAsJsonPrimitive("msg");
              if (msg != null) {
                  this.message = msg.getAsString();
                  return;
              }
          }
  
          // Fall back on error
          JsonPrimitive error = object.getAsJsonPrimitive("error");
          if (error != null) {
              this.message = error.getAsString();
              return;
          }
  
          // Otherwise set a default
          this.message = "Unknown Error";
      }
docs: Pull the message out of the response
  @param object the parsed response object