Distinguish client errors from server errors

This commit is contained in:
adnano 2020-09-25 23:23:24 -04:00
parent 927dfd29c5
commit 1f3587ba9d
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import (
"strings" "strings"
) )
// Errors. // Client errors.
var ( var (
ErrProtocol = errors.New("gemini: protocol error") ErrProtocol = errors.New("gemini: protocol error")
ErrInvalidURL = errors.New("gemini: requested URL is invalid") ErrInvalidURL = errors.New("gemini: requested URL is invalid")

View File

@ -13,7 +13,7 @@ import (
"time" "time"
) )
// Errors. // Server errors.
var ( var (
ErrBodyNotAllowed = errors.New("gemini: response status code does not allow for body") ErrBodyNotAllowed = errors.New("gemini: response status code does not allow for body")
) )