Fix error
This commit is contained in:
1 file changed
+1
-1
@@ -149,7 +149,7 @@ func errorToHTTP(err error, gone bool) int {
|
|||||||
|
|
||||||
return http.StatusGone
|
return http.StatusGone
|
||||||
case os.IsExist(err):
|
case os.IsExist(err):
|
||||||
return http.StatusGone
|
return http.StatusConflict
|
||||||
default:
|
default:
|
||||||
return http.StatusInternalServerError
|
return http.StatusInternalServerError
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user