updates
This commit is contained in:
1 parent
ddc6839d24
commit
4274a181a5
5 files changed
+119
-364
No files matched your search
@@ -104,6 +104,8 @@ func ErrorToHTTPCode(err error) int {
|
||||
switch {
|
||||
case os.IsPermission(err):
|
||||
return http.StatusForbidden
|
||||
case os.IsNotExist(err):
|
||||
return http.StatusNotFound
|
||||
case os.IsExist(err):
|
||||
return http.StatusGone
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user