Il 26/01/2014 23:09, Oliver Wulff ha scritto:
Hi there

I noticed that Syncope gives more detailed exception information back in the 
RestServiceExceptionMapper by using the enum SyncopeClientExceptionType. The 
exception information is returned in the HTTP response header 'ExceptionType'.

I've found in some sources ([1],[2]) that this kind of information could be 
returned in the http header X-Application-Error-Code and 
X-Application-Error-Info. What do you think about considering to change the 
header in 1.2 to X-Application-Error-Code instead of ExceptionType?

What do you think about it?

Thanks
Oli

[1] https://github.com/FriendsOfSymfony/FOSRestBundle/issues/280
[2] http://www.taliferro.com/29-rest-services-tips/

Hi Oliver, maybe you are right.
I'm not sure but tho proposed change seems to be more compliant with REST best practices.
I'm afraid about the considerable work required for .... BTW .... +1.

Regards,
F.

--
Fabio Martelli

Tirasa - Open Source Excellence
http://www.tirasa.net/

Apache Syncope PMC
http://people.apache.org/~fmartelli/

Reply via email to