Ah, yes, definitely. My bad, thanks.

On Fri, Aug 27, 2010 at 16:27, Jonathan Hall <[email protected]> wrote:
> I believe that's a  415.
>
> Jon
>
> On 27/08/10 19:33, Avi Flax wrote:
>> Hi all,
>>
>> I'm using 2.0 jse. I've got a method that has this signature:
>>
>> @Post("form")
>> public Representation accept(Form form) throws ResourceException {
>>
>> Everything generally works fine, but when I send a request with an
>> unsupported Content-Type — text/plain, say — the service returns 405
>> Method Not Allowed. This seems a little off to me — the method I sent
>> was POST, which IS allowed. What's not supported is the content type.
>> I'd prefer the Status Code in this situation to be 400 Bad Request,
>> and for the default error message to explain that the supplied
>> representation is not a supported Content Type. I think that'd be more
>> semantically correct.
>>
>> Does this make sense? I personally would like to see this change made.
>>
>> Thanks,
>> Avi
>>
>> Avi Flax » Partner » Arc90 » http://arc90.com
>> Kindling: Innovation through Collaboration » http://kindlingapp.com
>>
>> ------------------------------------------------------
>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2652158
>>
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2652174
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2652175

Reply via email to