Skip to content
Closed
Changes from all 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
6 changes: 3 additions & 3 deletions apps/hermes/server/src/api/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ impl IntoResponse for RestError {
fn into_response(self) -> Response {
match self {
RestError::BenchmarkPriceNotUnique => {
(StatusCode::NOT_FOUND, "Benchmark price is not unique").into_response()
(StatusCode::NO_CONTENT, "Benchmark price is not unique").into_response()
}
RestError::UpdateDataNotFound => {
(StatusCode::NOT_FOUND, "Update data not found").into_response()
(StatusCode::NO_CONTENT, "Update data not found").into_response()
}
RestError::CcipUpdateDataNotFound => {
// Return "Bad Gateway" error because CCIP expects a 5xx error if it needs to retry
Expand All @@ -75,7 +75,7 @@ impl IntoResponse for RestError {
.join(", ");

(
StatusCode::NOT_FOUND,
StatusCode::NO_CONTENT,
format!("Price ids not found: {missing_ids}"),
)
.into_response()
Expand Down
Loading