write response if WCS respons was an exception; added check for the statuscode