httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alchemist vk <alchemist...@gmail.com>
Subject Re: [users@httpd] Need Apache to return multiple error doc
Date Fri, 12 Jul 2019 17:11:51 GMT
Thanks Richard for suggestion.
I will surely try on working out this.

Thanks again for your time and help.

With Regards,
Venkatesh

On Fri, Jul 12, 2019 at 7:47 PM Richard <lists-apache@listmail.innovate.net>
wrote:

>
> > Date: Thursday, July 11, 2019 11:48:38 +0530
> > From: alchemist vk <alchemist.vk@gmail.com>
> >
> > Hi all,
> >   I have a requirement where I need send different error docs for
> > same error code depending upon specific error returned by
> > application.. For example, if application returns 400,it means
> > error may be due to non availability of query param or url doesn't
> > have mandatory fields etc,and depending upon this exact error, I
> > need to send proper error doc with exact error.. pls let me know
> > how to achieve this..
> >
> > PS: I have one error doc which says query param not available and
> > another error doc which says non availability of the mandatory
> > fields in URL, so how to differentiate and send specific error
> > depending upon single error return code 400..
> >
>
> You can point the ErrorDocument reference for a return code to a
> script, rather than a static page. You can then use the script to
> gather other available information (e.g., the referrer) to determine
> the cause of the error and generate/serve an appropriate error
> message.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message