[INTERNAL] SimpleProxyServlet: fixed the handling of non 200 responses

In case of non 200 responses the headers have not been forwarded
properly and also the response code was not considered properly which
resulted in a IOException which can be avoided by checking for a
successful response or client/server error.

Change-Id: I14c32c6d8567081e31cac93435e9161939212582