handle non-200 and invalid content responses