@@ -168,6 +168,9 @@ impl ProtocolVersion {
168168 pub const V_2024_11_05 : Self = Self ( Cow :: Borrowed ( "2024-11-05" ) ) ;
169169 pub const LATEST : Self = Self :: V_2025_11_25 ;
170170
171+ /// First protocol version that requires SEP-2243 standard HTTP headers.
172+ pub const STANDARD_HEADERS : Self = Self :: V_2026_07_28 ;
173+
171174 /// All protocol versions known to this SDK.
172175 pub const KNOWN_VERSIONS : & [ Self ] = & [
173176 Self :: V_2024_11_05 ,
@@ -512,6 +515,7 @@ pub struct JsonRpcNotification<N = Notification> {
512515pub struct ErrorCode ( pub i32 ) ;
513516
514517impl ErrorCode {
518+ pub const HEADER_MISMATCH : Self = Self ( -32001 ) ;
515519 pub const RESOURCE_NOT_FOUND : Self = Self ( -32002 ) ;
516520 pub const INVALID_REQUEST : Self = Self ( -32600 ) ;
517521 pub const METHOD_NOT_FOUND : Self = Self ( -32601 ) ;
@@ -557,7 +561,9 @@ impl ErrorData {
557561 pub fn resource_not_found ( message : impl Into < Cow < ' static , str > > , data : Option < Value > ) -> Self {
558562 Self :: new ( ErrorCode :: RESOURCE_NOT_FOUND , message, data)
559563 }
560-
564+ pub fn header_mismatch ( message : impl Into < Cow < ' static , str > > , data : Option < Value > ) -> Self {
565+ Self :: new ( ErrorCode :: HEADER_MISMATCH , message, data)
566+ }
561567 pub fn parse_error ( message : impl Into < Cow < ' static , str > > , data : Option < Value > ) -> Self {
562568 Self :: new ( ErrorCode :: PARSE_ERROR , message, data)
563569 }
0 commit comments