Skip to content

Commit

Permalink
Change status code on duplicate deletion to 409 (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop authored Sep 27, 2023
1 parent 7230136 commit 9f18003
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ impl Error {
| Self::IdentityCommitmentNotFound
| Self::InvalidCommitment
| Self::InvalidSerialization(_) => StatusCode::BAD_REQUEST,
Self::DuplicateCommitment => StatusCode::CONFLICT,
Self::IdentityAlreadyDeleted
| Self::IdentityQueuedForDeletion
| Self::DuplicateCommitment => StatusCode::CONFLICT,
_ => StatusCode::INTERNAL_SERVER_ERROR,
}
}
Expand Down

0 comments on commit 9f18003

Please sign in to comment.