0103 Processing 4xx Responses

 

   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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值