0103 Processing 4xx Responses

来源:互联网 发布:excel2010宏编程教程 编辑:程序博客网 时间:2024/05/16 15:41

 

   Certain 4xx response codes require specific UA processing,

   independent of the method.

   If a 401 (Unauthorized) or 407 (Proxy Authentication Required)

   response is received, the UAC SHOULD follow the authorization

   procedures of Section 22.2 and Section 22.3 to retry the request with

   credentials.

   If a 413 (Request Entity Too Large) response is received (Section

   21.4.11), the request contained a body that was longer than the UAS

   was willing to accept.  If possible, the UAC SHOULD retry the

   request, either omitting the body or using one of a smaller length.

   If a 415 (Unsupported Media Type) response is received (Section

   21.4.13), the request contained media types not supported by the UAS.

   The UAC SHOULD retry sending the request, this time only using

   content with types listed in the Accept header field in the response,

   with encodings listed in the Accept-Encoding header field in the

   response, and with languages listed in the Accept-Language in the

   response.

   If a 416 (Unsupported URI Scheme) response is received (Section

   21.4.14), the Request-URI used a URI scheme not supported by the

   server.  The client SHOULD retry the request, this time, using a SIP

   URI.

   If a 420 (Bad Extension) response is received (Section 21.4.15), the

   request contained a Require or Proxy-Require header field listing an

   option-tag for a feature not supported by a proxy or UAS.  The UAC

   SHOULD retry the request, this time omitting any extensions listed in

   the Unsupported header field in the response.

   In all of the above cases, the request is retried by creating a new

   request with the appropriate modifications.  This new request

   constitutes a new transaction and SHOULD have the same value of the

   Call-ID, To, and From of the previous request, but the CSeq should

   contain a new sequence number that is one higher than the previous.

原创粉丝点击