File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/hermes/server/src/api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ impl IntoResponse for RestError {
49
49
fn into_response ( self ) -> Response {
50
50
match self {
51
51
RestError :: BenchmarkPriceNotUnique => {
52
- ( StatusCode :: NOT_FOUND , "Benchmark price is not unique" ) . into_response ( )
52
+ ( StatusCode :: NO_CONTENT , "Benchmark price is not unique" ) . into_response ( )
53
53
}
54
54
RestError :: UpdateDataNotFound => {
55
- ( StatusCode :: NOT_FOUND , "Update data not found" ) . into_response ( )
55
+ ( StatusCode :: NO_CONTENT , "Update data not found" ) . into_response ( )
56
56
}
57
57
RestError :: CcipUpdateDataNotFound => {
58
58
// Return "Bad Gateway" error because CCIP expects a 5xx error if it needs to retry
@@ -75,7 +75,7 @@ impl IntoResponse for RestError {
75
75
. join ( ", " ) ;
76
76
77
77
(
78
- StatusCode :: NOT_FOUND ,
78
+ StatusCode :: NO_CONTENT ,
79
79
format ! ( "Price ids not found: {missing_ids}" ) ,
80
80
)
81
81
. into_response ( )
You can’t perform that action at this time.
0 commit comments