Hi,

I want to send error messages for invalid URLs from API Manager Store
jaggery layer.

I use response.sendError(404) for this purpose.
For HTTP POST and GET this method returns the correct error page while it
doesn't return any message for PUT and DELETE.

I debugged [1] and found out that the errors send in all HTTP methods gets
hit in

rho.response.sendError((Integer) args[0]);

Output stream of rho.response also contains the correct error page in all
HTTP methods.
Yet it doesn't get returned in HTTP PUT and DELETE methods.

I am unable to figure out the reason for this behaviour.
Any help is appreciated.

Thanks.

[1]
http://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk04/components/jaggery/0.9.0.ALPHA4.wso2v1/hostobjects/org.jaggeryjs.hostobjects.web/src/main/java/org/jaggeryjs/hostobjects/web/ResponseHostObject.java

-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : [email protected]

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to