On Mon, Apr 9, 2012 at 10:05 AM, Evgeny Shvidky <[email protected]> wrote:
> Hi,
>
> I want to generate a new HTTP error code.
> I set in request->status a new opcode and I added in conf file next line " 
> ErrorDocument 449 /449.html"
> Error 449 is MS-ActiveSync protocol error.
> But... I receive next error from Apache "Unsupported HTTP response code 449".

You have to set r->status_line too if httpd doesn't have a built-in
status string for the code you're setting.  The status line should
start with the status code and a space character, followed by the
desired text.

>
> Thanks,
> Evgeny
>
> -----Original Message-----
> From: Eric Covener [mailto:[email protected]]
> Sent: Monday, April 09, 2012 4:12 PM
> To: [email protected]
> Subject: Re: [users@httpd] How to set the http response code for an error 
> message
>
> On Mon, Apr 9, 2012 at 8:12 AM, Evgeny Shvidky <[email protected]> wrote:
>> I have a custom error message that I set into the request by "ap_rputs"
>> function.
>
> set r->status to the status code and continue to return OK.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Born in Roswell... married an alien...

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to