def METHOD_NAME(self, result):
    self.assertTrue(400 <= result.status_code < 600, "Response has not an error code "+str(result.status_code))
    self.assertEqual(result.headers['Content-Type'], 'application/json', "Response status code "+str(result.status_code))