I am making an API call to a commerce system (Hybris) using rest-connector in loopback. When there is an error, i am getting response statusCode as 200, whereas the error statusCode sent from hybris is 4xx. Also, when I hit the same URL from my browser (Chrome), I am getting statusCode 4xx. Why is loopback converting the statusCode to 200 and how do I get the original statusCode?
Asked
Active
Viewed 40 times
0
-
1I imagine that you have a remote method that acts as a proxy for calling hybris .. can you provide a snippet of how your code so that we may help debug the problem? I've used 3rd party systems in the past and I've been able to pass the correct status code back transparently, so I'd like to view what's different. – pulkitsinghal Aug 13 '15 at 12:23
-
+1 Can you provide a link to a test project on Github? See https://github.com/strongloop/loopback/wiki/Issues#bug-report – superkhau Aug 13 '15 at 21:29
-
It appears to be a bug - https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/loopbackjs/Wkj3Gz3wWJA/GA2bFfovBAAJ – pb_ Aug 14 '15 at 04:32