Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-26 Thread Michael-O
Am 2012-11-23 23:02, schrieb Mark Thomas: On 23/11/2012 22:00, Michael-O wrote: Am 2012-11-23 22:50, schrieb Mark Thomas: On 23/11/2012 21:44, Michael-O wrote: Am 2012-11-23 22:28, schrieb Mark Thomas: On 23/11/2012 21:23, Michael-O wrote: Am 2012-11-23 22:16, schrieb Mark Thomas: On 23/11/

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-25 Thread Michael-O
Am 2012-11-24 23:08, schrieb Terence M. Bandoian: On 11/23/2012 3:09 PM, Michael-O wrote: Hi, I've been struggling recently with this builtin valve and some Spring-based REST services. I some cases I do return states like 404 or 400. SendError seems to be the right thing to do but Tomcat alters

HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-24 Thread Terence M. Bandoian
On 11/23/2012 3:09 PM, Michael-O wrote: Hi, I've been struggling recently with this builtin valve and some Spring-based REST services. I some cases I do return states like 404 or 400. SendError seems to be the right thing to do but Tomcat alters the response with the HTML page. Which is highl

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Michael-O
Am 2012-11-23 23:10, schrieb Mark Thomas: On 23/11/2012 22:07, Michael-O wrote: Am 2012-11-23 23:02, schrieb Mark Thomas: On 23/11/2012 22:00, Michael-O wrote: I am aware of that implementation detail. I was solely referring to the definition in the JavaDocs. They seem to be misleading. At

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Mark Thomas
On 23/11/2012 22:07, Michael-O wrote: > Am 2012-11-23 23:02, schrieb Mark Thomas: >> On 23/11/2012 22:00, Michael-O wrote: >>> I am aware of that implementation detail. I was solely referring to the >>> definition in the JavaDocs. They seem to be misleading. At least to me. >> >> I was referring

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Michael-O
Am 2012-11-23 23:02, schrieb Mark Thomas: On 23/11/2012 22:00, Michael-O wrote: Am 2012-11-23 22:50, schrieb Mark Thomas: On 23/11/2012 21:44, Michael-O wrote: Am 2012-11-23 22:28, schrieb Mark Thomas: On 23/11/2012 21:23, Michael-O wrote: Am 2012-11-23 22:16, schrieb Mark Thomas: On 23/11/

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Mark Thomas
On 23/11/2012 22:00, Michael-O wrote: > Am 2012-11-23 22:50, schrieb Mark Thomas: >> On 23/11/2012 21:44, Michael-O wrote: >>> Am 2012-11-23 22:28, schrieb Mark Thomas: On 23/11/2012 21:23, Michael-O wrote: > Am 2012-11-23 22:16, schrieb Mark Thomas: >> On 23/11/2012 21:09, Michael-O w

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Michael-O
Am 2012-11-23 22:50, schrieb Mark Thomas: On 23/11/2012 21:44, Michael-O wrote: Am 2012-11-23 22:28, schrieb Mark Thomas: On 23/11/2012 21:23, Michael-O wrote: Am 2012-11-23 22:16, schrieb Mark Thomas: On 23/11/2012 21:09, Michael-O wrote: Hi, I've been struggling recently with this builtin

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Mark Thomas
On 23/11/2012 21:44, Michael-O wrote: > Am 2012-11-23 22:28, schrieb Mark Thomas: >> On 23/11/2012 21:23, Michael-O wrote: >>> Am 2012-11-23 22:16, schrieb Mark Thomas: On 23/11/2012 21:09, Michael-O wrote: > Hi, > > I've been struggling recently with this builtin valve and some >>

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Michael-O
Am 2012-11-23 22:28, schrieb Mark Thomas: On 23/11/2012 21:23, Michael-O wrote: Am 2012-11-23 22:16, schrieb Mark Thomas: On 23/11/2012 21:09, Michael-O wrote: Hi, I've been struggling recently with this builtin valve and some Spring-based REST services. I some cases I do return states like 4

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Mark Thomas
On 23/11/2012 21:23, Michael-O wrote: > Am 2012-11-23 22:16, schrieb Mark Thomas: >> On 23/11/2012 21:09, Michael-O wrote: >>> Hi, >>> >>> I've been struggling recently with this builtin valve and some >>> Spring-based REST services. I some cases I do return states like 404 or >>> 400. SendError se

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Michael-O
Am 2012-11-23 22:16, schrieb Mark Thomas: On 23/11/2012 21:09, Michael-O wrote: Hi, I've been struggling recently with this builtin valve and some Spring-based REST services. I some cases I do return states like 404 or 400. SendError seems to be the right thing to do but Tomcat alters the respo

Re: HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Mark Thomas
On 23/11/2012 21:09, Michael-O wrote: > Hi, > > I've been struggling recently with this builtin valve and some > Spring-based REST services. I some cases I do return states like 404 or > 400. SendError seems to be the right thing to do but Tomcat alters the > response with the HTML page. Which is

HttpServletReponse#sendError(int) behavior in ErrorReportValve

2012-11-23 Thread Michael-O
Hi, I've been struggling recently with this builtin valve and some Spring-based REST services. I some cases I do return states like 404 or 400. SendError seems to be the right thing to do but Tomcat alters the response with the HTML page. Which is highly unwanted for a REST API. I have check