diff options
Diffstat (limited to 'src/channel/routes.rs')
| -rw-r--r-- | src/channel/routes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channel/routes.rs b/src/channel/routes.rs index e97c447..eaf7962 100644 --- a/src/channel/routes.rs +++ b/src/channel/routes.rs @@ -53,7 +53,7 @@ impl IntoResponse for CreateError { let Self(error) = self; match error { duplicate @ app::CreateError::DuplicateName(_) => { - (StatusCode::BAD_REQUEST, duplicate.to_string()).into_response() + (StatusCode::CONFLICT, duplicate.to_string()).into_response() } other => Internal::from(other).into_response(), } |
