Re: How to set the http response code for an error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 9, 2012 at 10:05 AM, Evgeny Shvidky <evgeny@xxxxxxxxxxx> 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:covener@xxxxxxxxx]
> Sent: Monday, April 09, 2012 4:12 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  How to set the http response code for an error message
>
> On Mon, Apr 9, 2012 at 8:12 AM, Evgeny Shvidky <evgeny@xxxxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux