Re: REST Error Handling

2012-01-03 Thread Matteo Landi
On Jan/02, Will wrote: Hi all, I'm looking for a way to return a generic error every time something goes wrong with a REST request. So for example, I would like to return a simple, XML response like: error There was a problem processing your request. /error Anytime something goes

Re: REST Error Handling

2012-01-03 Thread Thomas Ploch
The Custom Exception Handler should also send out correct headers. :-) On 03.01.2012 10:06, Matteo Landi wrote: On Jan/02, Will wrote: Hi all, I'm looking for a way to return a generic error every time something goes wrong with a REST request. So for example, I would like to return a

REST Error Handling

2012-01-02 Thread Will
Hi all, I'm looking for a way to return a generic error every time something goes wrong with a REST request. So for example, I would like to return a simple, XML response like: error There was a problem processing your request. /error Anytime something goes wrong when something is accessed via