Professional Documents
Culture Documents
>>
>> 1) 415 Unsupported Media Type
>> 2) 488 Not Acceptable Here
RFC 3261 Says that 400 Bad Request should be formed if there is an
error in Mandatory headers like To,From,Via and Callid etc or if the
Mandatory headers are missing.
>
When is it appropriate to use 501 Not Implemented response
> instead of 405
> Method Not Allowed for a Method which is not supported in an
endpoint?
>
> The RFC (3261) seems ambiguous in this regard.
>
> <<21.5.2 501 Not Implemented
>
>
The server does not support the functionality required to
> fulfill the
>
request. This is the appropriate response when a UAS does not
>
recognize the request method and is not capable of
> supporting it for
>
any user. (Proxies forward all requests regardless of method.)
>
>
Note that a 405 (Method Not Allowed) is sent when the server
>
recognizes the request method, but that method is not allowed or
>
supported.>>
>
>
> Since both 501 and 405 can be used for functionality that is
> not supported,
> is it appropriate to always use 405 for unsupported Methods?
Well, if your stack understands method Foo, but doesn't want to allow
the request, send a 405 Method Not Allowed. (Say, your stack knows what
to do with REFERs but doesn't allow REFERs from certain domains, or
something.) If your stack has no idea what a Foo method is, or what to
do with it, return a 501 Not Implemented.
In other words, 405 means "I know what you want but I don't allow that"
while 501 means "I don't understand what you want".
frank
406
As far as I can tell, a 406 is returned when the UAS on the other side
cannot formulate a response with content-type acceptable to the sender (as
indicated in the Accept-header it sent). A 488 is returned when the UAS
can satisfy the Accept-header but the session description in the request
is not acceptable. There is also a 606 which tells that ALL UASs for that
user don't accept the session description (a 488 only rejects the request
to that particular R-URI).
408
Hi,
I am slightly confused about 408 request timeout
response.
When a UAC send an Invite and it doesn't get back any
response, the UAC transaction generates a 408
response.
-Regards
Ramya
" Failure is not when you fall down
_______________________________________________
Sip-implementors mailing list
Sip-implementors at cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
ACCORDING TO RFC3261 , 401 IS ISSUED BY UAS AND REGISTRAR AND 407 BY
SERVER IS IN PROXY MODE , IN ORDER TO AUTHENTICATE UA.