|
From: Bill B. <bb...@re...> - 2008-06-06 20:04:22
|
Are you sure Resteasy is returning status code 405 and not 406? I have a unit test since February that tests this very condition and it passes. Bill Burke wrote: > Looks like it should be 406. > > I'll get to it as soon as I can. > > http://jira.jboss.com/jira/browse/RESTEASY-48 > > > > JXrgen Zimmermann wrote: >> A resource's method is annotated with @ProduceMime({"text/xml", >> "text/plain"}). >> The HTTP client has a header with "Accept" being set to >> "application/json". >> >> Now there are differences in Resteasy and Jersey: >> - Resteasy returns the status code 405 (METHOD NOT ALLOWED) >> - Jersey returns 406 (NOT ACCEPTABLE) >> >> Which one is correct? >> >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Resteasy-developers mailing list >> Res...@li... >> https://lists.sourceforge.net/lists/listinfo/resteasy-developers > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |