So I would do something like

echo "Status: 410 Gone"

to create a "410 Gone" result code and message?

Claude

On Mon, Feb 15, 2021 at 6:37 PM Eric Covener <cove...@gmail.com> wrote:

> There is a pseudo header you can emit from your CGI called Status that
> allows you to change the HTTP status code.
> You can set it just like you'd set e.g. Content-Type
>
> On Mon, Feb 15, 2021 at 11:37 AM Claude Warren <cla...@xenei.com> wrote:
> >
> > Greetings,
> >
> > I am playing with Bash based CGI.  It works reasonably well.  I know
> that it is not blindingly fast, but I think it will be sufficient for what
> I want to do if I can solve one problem.  I can see how to generate any
> result code other than 200.
> >
> > Is there a way to set the result code to anything else?  If so how?  Is
> there documentation?
> >
> > Thank you,
> > Claude
> >
> > --
> > I like: Like Like - The likeliest place on the web
> > LinkedIn: http://www.linkedin.com/in/claudewarren
>
>
>
> --
> Eric Covener
> cove...@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

-- 
I like: Like Like - The likeliest place on the web
<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to