check rename source and target

This commit is contained in:
Nicola Murino
2021-12-28 12:03:52 +01:00
parent c36217c654
commit 4d7a4aa99a
8 changed files with 44 additions and 9 deletions

View File

@@ -101,6 +101,8 @@ func getMappedStatusCode(err error) int {
statusCode = http.StatusNotFound
case errors.Is(err, common.ErrQuotaExceeded):
statusCode = http.StatusRequestEntityTooLarge
case errors.Is(err, common.ErrOpUnsupported):
statusCode = http.StatusBadRequest
default:
statusCode = http.StatusInternalServerError
}