Marc Hadley wrote:
> For impls based on Servlet I don't see how you could propagate a
> custom reason phrase, setStatus and sendError just support an int for
> status code.
>
The second variant of HttpServletResponse.sendError() takes both an
integer status code and a string message. That message gets sent as the
reason phrase.
Craig
> Marc.
>
> On Aug 14, 2008, at 1:40 PM, Bill Burke wrote:
>
>> A Seam guy was asking me for the ability to specify the Reason Phrase
>> of a status code. HTTP 1.1 suggest a reason phrase, but does not
>> require any specific one.
>>
>> Can we add a reason phrase setting to Response?
>>
>> --
>> Bill Burke
>> JBoss, a division of Red Hat
>> http://bill.burkecentral.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
>> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>>
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>