Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/common/http/status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ absl::string_view statusCodeToString(StatusCode code) {
return "PrematureResponseError";
case StatusCode::CodecClientError:
return "CodecClientError";
default:
Comment thread
sunjayBhatia marked this conversation as resolved.
Outdated
NOT_REACHED_GCOVR_EXCL_LINE;
}
}

Expand Down
4 changes: 2 additions & 2 deletions source/common/http/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down