add comment to ErrorToHTTPCode

pull/144/head
Henrique Dias 2016-10-31 21:26:47 +00:00
parent 8256959138
commit 730d6cd729
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import (
"os" "os"
) )
// ErrorToHTTPCode converts errors to HTTP Status Code.
func ErrorToHTTPCode(err error, gone bool) int { func ErrorToHTTPCode(err error, gone bool) int {
switch { switch {
case os.IsPermission(err): case os.IsPermission(err):