Hi,

Use the following to change the status.

<property name="HTTP_SC" value="503" scope="axis2"/>


On Mon, Feb 10, 2014 at 10:54 PM, wchinthakaps <
[email protected]> wrote:

> I am developing connector on WSO2 ESB (REST service) and when end point is
> wrong, I get HTTP "200 Ok" response with WSO2 error code.
>
> ex:
> HTTP/1.1 200 OK
> Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Host: cd-iranathunga:8280
> Accept-Encoding: gzip,deflate
> Content-Type: application/json
> Date: Mon, 10 Feb 2014 11:30:10 GMT
> Server: WSO2-PassThrough-HTTP
> Transfer-Encoding: chunked
> Connection: Keep-Alive
>
> { "error_code":"101503", "error_message":"Error connecting to the back end"
> }
>
> 1. If I want to change the "200 OK" header and use it, is it ok to change?
> 2. if it is ok, then how to change the header?
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Connector-REST-bad-endpoint-response-issue-tp91973.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/<http://wso2.com/about/team/malaka-silva/>

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to