Fix error
parent
973d4380df
commit
a48617de6a
2
http.go
2
http.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue