diff --git a/source/common/http/status.cc b/source/common/http/status.cc index 96aa910bd9344..166b154a3d2be 100644 --- a/source/common/http/status.cc +++ b/source/common/http/status.cc @@ -22,6 +22,7 @@ absl::string_view statusCodeToString(StatusCode code) { case StatusCode::CodecClientError: return "CodecClientError"; } + NOT_REACHED_GCOVR_EXCL_LINE; } struct EnvoyStatusPayload { diff --git a/source/common/http/status.h b/source/common/http/status.h index 3efc54ee1a2f0..bc2e1370df04f 100644 --- a/source/common/http/status.h +++ b/source/common/http/status.h @@ -91,7 +91,7 @@ Status codecClientError(absl::string_view message); /** * Returns Envoy::StatusCode of the given status object. - * If the status object does not contain valid Envoy::Status value the function will RELEASE_ASSERT. + * If the status object does not contain valid Envoy::Status value the function will ASSERT. */ StatusCode getStatusCode(const Status& status); @@ -105,7 +105,7 @@ ABSL_MUST_USE_RESULT bool isCodecClientError(const Status& status); /** * Returns Http::Code value of the PrematureResponseError status. - * IsPrematureResponseError(status) must be true which is checked by RELEASE_ASSERT. + * IsPrematureResponseError(status) must be true which is checked by ASSERT. */ Http::Code getPrematureResponseHttpCode(const Status& status);