Re: Use existing CGI response for HTTP errors

2018-10-04 Thread Daniel Becroft
On Fri, Oct 5, 2018 at 3:12 AM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Daniel, > > On 10/3/18 19:16, Daniel Becroft wrote: > > Hi, > > > > We are setting up Tomcat 8 to use a CGI program (.exe, proprietary) > > to generate

Re: Use existing CGI response for HTTP errors

2018-10-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 10/3/18 19:16, Daniel Becroft wrote: > Hi, > > We are setting up Tomcat 8 to use a CGI program (.exe, proprietary) > to generate and return various JSON responses. This all works fine > when the response is a HTTP 200. But, when an HTTP

Re: Use existing CGI response for HTTP errors

2018-10-04 Thread Mark Thomas
On 04/10/18 00:16, Daniel Becroft wrote: > Hi, > > We are setting up Tomcat 8 to use a CGI program (.exe, proprietary) to > generate and return various JSON responses. This all works fine when the > response is a HTTP 200. But, when an HTTP error is returned (HTTP 4xx), > Tomcat is generating the

Use existing CGI response for HTTP errors

2018-10-03 Thread Daniel Becroft
Hi, We are setting up Tomcat 8 to use a CGI program (.exe, proprietary) to generate and return various JSON responses. This all works fine when the response is a HTTP 200. But, when an HTTP error is returned (HTTP 4xx), Tomcat is generating the HTML page instead. We have the same setup working un