add comment to ErrorToHTTPCode
parent
8256959138
commit
730d6cd729
|
@ -5,6 +5,7 @@ import (
|
|||
"os"
|
||||
)
|
||||
|
||||
// ErrorToHTTPCode converts errors to HTTP Status Code.
|
||||
func ErrorToHTTPCode(err error, gone bool) int {
|
||||
switch {
|
||||
case os.IsPermission(err):
|
||||
|
|
Loading…
Reference in New Issue