We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a32ad4b commit fe95500Copy full SHA for fe95500
1 file changed
common/src/api/external/error.rs
@@ -420,8 +420,9 @@ impl From<Error> for HttpError {
420
421
Error::ObjectAlreadyExists { type_name: t, object_name: n } => {
422
let message = format!("already exists: {} \"{}\"", t, n);
423
- HttpError::for_bad_request(
+ HttpError::for_client_error(
424
Some(String::from("ObjectAlreadyExists")),
425
+ dropshot::ClientErrorStatusCode::CONFLICT,
426
message,
427
)
428
}
0 commit comments