Parse the response content as either an XML or JSON error message