
trawick at gmail
Apr 9, 2012, 8:01 AM
Post #4 of 4
(280 views)
Permalink
|
|
Re: How to set the http response code for an error message
[In reply to]
|
|
On Mon, Apr 9, 2012 at 10:05 AM, Evgeny Shvidky <evgeny [at] inovvia> 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 [at] gmail] > Sent: Monday, April 09, 2012 4:12 PM > To: users [at] httpd > Subject: Re: [users [at] http] How to set the http response code for an error message > > On Mon, Apr 9, 2012 at 8:12 AM, Evgeny Shvidky <evgeny [at] inovvia> 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 [at] httpd > For additional commands, e-mail: users-help [at] httpd > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe [at] httpd > For additional commands, e-mail: users-help [at] httpd > -- Born in Roswell... married an alien... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe [at] httpd For additional commands, e-mail: users-help [at] httpd
|