You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by Jim Ancona <ji...@anconafamily.com> on 2008/06/06 23:38:09 UTC
Default status for unimplemented methods
Most of the unimplemented cases in AbstractProvider and
AbstractCollectionAdapter call ProviderHelper.notsupported(), which
returns an HTTP status of 415 - Media type not supported. So an HTTP PUT
or DELETE on a collection URI, or a POST to an Entry URI returns 415. It
seems to me that something like 405 Method not allowed would be clearer.
Thoughts? If there's consensus on this, I'll log a bug and submit a patch.
Jim
Re: Default status for unimplemented methods
Posted by Dan Diephouse <da...@mulesource.com>.
Definitely sounds like 405 is more appropriate to me!
Dan
On Fri, Jun 6, 2008 at 5:14 PM, Chris Berry <ch...@gmail.com> wrote:
> 405 METHOD NOT ALLOWED definitely makes more sense.
> 405 implies that the method is recognized but not supported.
> Cheers,
> -- Chris
> On Jun 6, 2008, at 4:38 PM, Jim Ancona wrote:
>
> Most of the unimplemented cases in AbstractProvider and
>> AbstractCollectionAdapter call ProviderHelper.notsupported(), which returns
>> an HTTP status of 415 - Media type not supported. So an HTTP PUT or DELETE
>> on a collection URI, or a POST to an Entry URI returns 415. It seems to me
>> that something like 405 Method not allowed would be clearer.
>>
>> Thoughts? If there's consensus on this, I'll log a bug and submit a patch.
>>
>> Jim
>>
>
> S'all good --- chriswberry at gmail dot com
>
>
>
>
--
Dan Diephouse
http://mulesource.com | http://netzooid.com/blog
Re: Default status for unimplemented methods
Posted by Chris Berry <ch...@gmail.com>.
405 METHOD NOT ALLOWED definitely makes more sense.
405 implies that the method is recognized but not supported.
Cheers,
-- Chris
On Jun 6, 2008, at 4:38 PM, Jim Ancona wrote:
> Most of the unimplemented cases in AbstractProvider and
> AbstractCollectionAdapter call ProviderHelper.notsupported(), which
> returns an HTTP status of 415 - Media type not supported. So an HTTP
> PUT or DELETE on a collection URI, or a POST to an Entry URI returns
> 415. It seems to me that something like 405 Method not allowed would
> be clearer.
>
> Thoughts? If there's consensus on this, I'll log a bug and submit a
> patch.
>
> Jim
S'all good --- chriswberry at gmail dot com
Re: Default status for unimplemented methods
Posted by James M Snell <ja...@gmail.com>.
Hmmm. definitely sounds like a bug. It should be 405.
- James
Jim Ancona wrote:
> Most of the unimplemented cases in AbstractProvider and
> AbstractCollectionAdapter call ProviderHelper.notsupported(), which
> returns an HTTP status of 415 - Media type not supported. So an HTTP PUT
> or DELETE on a collection URI, or a POST to an Entry URI returns 415. It
> seems to me that something like 405 Method not allowed would be clearer.
>
> Thoughts? If there's consensus on this, I'll log a bug and submit a patch.
>
> Jim
>