Consuming REST API returns error 'The server committed a protocol violation..."


I am consuming a REST API using the GET method. The API works when I call it from a web browser, but returns the following error when it is called from OutSystems. 

The server committed a protocol violation. Section=ResponseStatusLine

The API is hosted on a local internal server and is one we have built ourselves. The output looks normal when called in a browser.

Any thoughts on how to fix this or what this error means would be greatly appreciated.

Thanks in advance,

Zoe Harris

It seems your REST API commits, well, a protocol violation. See this stackoverflow thread, and especially this answer.