code: public static SpdyStreamStatus valueOf(int code) {
          if (code == 0) {
              throw new IllegalArgumentException(
                      "0 is not a valid status code for a RST_STREAM");
          }
  
          switch (code) {
          case 1:
              return PROTOCOL_ERROR;
          case 2:
              return INVALID_STREAM;
          case 3:
              return REFUSED_STREAM;
          case 4:
              return UNSUPPORTED_VERSION;
          case 5:
              return CANCEL;
          case 6:
              return INTERNAL_ERROR;
          case 7:
              return FLOW_CONTROL_ERROR;
          case 8:
              return STREAM_IN_USE;
          case 9:
              return STREAM_ALREADY_CLOSED;
          case 10:
              return INVALID_CREDENTIALS;
          case 11:
              return FRAME_TOO_LARGE;
          }
  
          return new SpdyStreamStatus(code, "UNKNOWN (" + code + ')');
      }
docs: Returns the {@link SpdyStreamStatus} represented by the specified code.
  If the specified code is a defined SPDY status code, a cached instance
  will be returned.  Otherwise, a new instance will be returned.