Return 400 for missing /api/serialize IDs (#1272)

This commit is contained in:
AK-Khan02 2026-06-10 21:48:33 -04:00 • committed by GitHub
parent d12120bab6
commit 16633e3c65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 37 additions and 13 deletions

View file

@ -276,7 +276,7 @@ impl ApiService {
response_dom.transfer_within(child_ref, object_value);
} else {
msgpack(
return msgpack(
ErrorResponse::bad_request(format!("provided id {id} is not in the tree")),
StatusCode::BAD_REQUEST,
);