3.1.3.5.2 Indicating Invalid Octet Stream in Server
When the RPC runtime determines that a network octet stream is invalid, it MUST indicate the failure to the client. The form of the indication is dependent on whether the RPC protocol variant used is connection-oriented or connectionless. For information about how a connection-oriented protocol variant returns a server unmarshaling failure to the client, see section 3.3.3.4.1. For information about how a connectionless protocol variant returns a server unmarshaling failure to the client, see section 3.2.3.5.1. In either case, the status code returned MUST be 0X6F7.
Details about Win32 error codes are specified in [MS-ERREF].