networks:get, networks:list error parity
References: https://todo.e3t.cc/~core/trifid/1
This commit is contained in:
parent
ea3bc9e429
commit
44fc07089d
|
@ -394,8 +394,8 @@ pub async fn get_network_request(
|
||||||
} else {
|
} else {
|
||||||
HttpResponse::NotFound().json(APIErrorsResponse {
|
HttpResponse::NotFound().json(APIErrorsResponse {
|
||||||
errors: vec![APIError {
|
errors: vec![APIError {
|
||||||
code: "ERR_MISSING_NETWORK".to_string(),
|
code: "ERR_NOT_FOUND".to_string(),
|
||||||
message: "Network does not exist".to_string(),
|
message: "resource not found".to_string(),
|
||||||
path: None,
|
path: None,
|
||||||
}],
|
}],
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue