2.1.2.1.2 Receiving Reply
If the target Remote Method that is identified by the higher layer as specified in Remote Method Invocation (section 3.3.4.2) is Two-Way, then the implementation MUST wait for a response. If a response is not received before an implementation-defined time-out, the implementation SHOULD cancel the request and report an error to the higher layer.<12>
For Two-Way Remote Methods, if the status code of the HTTP response is one of the successful codes as specified in [RFC2616] section 10.2 or one of the server-error codes as specified in [RFC2616] section 10.5, the response MUST be processed further as specified in section 3.3.4.2.4. If the Status-Code is one of the client-error codes as specified in [RFC2616] section 10.4, the response MUST NOT be processed any further.
For both Two-Way and One-Way Remote Methods an implementation MAY handle other status codes in an implementation-specific way that complies with [RFC2616]. If an error occurs in processing of the other status codes, the response MUST NOT be processed any further.<13>