Function SimplifyHttpErrorResponse