-
-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
There are some cases where we return 500 instead of an appropriate HTTP status code. We should refactor them to make the API more idiomatic/conventional.
One example is from #258 (comment)
Lines 954 to 955 in 4987cfe
assert_eq!(StatusCode::INTERNAL_SERVER_ERROR, response.status()); | |
assert_body(response.into_body(), "file already exists\n").await?; |
We should use 409 Conflict
there instead of 500 internal server error.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers