Forum OpenACS Development: Re: ADP or TCL for 404 error page
Is there an easy way to set the HTTP response code either by adding a flag for the rp_serve_abstract_file proc, or perhaps by setting the response code inside the templated ADP script? Is there a way that a script can arbitrarily set a response code? Something like ad_conn -set (though I don't think that ad_conn lets me do that)
What would be the correct way to return a 404 error code by default when requesting a non existent page?
For example, if you request something like:
You'll get a strange page with comments from nowhere and a 200 OK error code.
Thanks for the tip Dave - I've always had problems getting those AOLserver error pages working (in fact I never have and they've never been enough of a priority - shame on me - hopefully will get it now).