Skip to content

Commit 0f8050b

Browse files
committed
Update hermes responses to no content
1 parent 1b84cca commit 0f8050b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/hermes/server/src/api/rest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ impl IntoResponse for RestError {
4949
fn into_response(self) -> Response {
5050
match self {
5151
RestError::BenchmarkPriceNotUnique => {
52-
(StatusCode::NOT_FOUND, "Benchmark price is not unique").into_response()
52+
(StatusCode::NO_CONTENT, "Benchmark price is not unique").into_response()
5353
}
5454
RestError::UpdateDataNotFound => {
55-
(StatusCode::NOT_FOUND, "Update data not found").into_response()
55+
(StatusCode::NO_CONTENT, "Update data not found").into_response()
5656
}
5757
RestError::CcipUpdateDataNotFound => {
5858
// Return "Bad Gateway" error because CCIP expects a 5xx error if it needs to retry
@@ -75,7 +75,7 @@ impl IntoResponse for RestError {
7575
.join(", ");
7676

7777
(
78-
StatusCode::NOT_FOUND,
78+
StatusCode::NO_CONTENT,
7979
format!("Price ids not found: {missing_ids}"),
8080
)
8181
.into_response()

0 commit comments

Comments
 (0)