mirror of
https://git.sr.ht/~adnano/go-gemini
synced 2024-09-29 16:31:18 +02:00
Distinguish client errors from server errors
This commit is contained in:
parent
927dfd29c5
commit
1f3587ba9d
@ -13,7 +13,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Errors.
|
||||
// Client errors.
|
||||
var (
|
||||
ErrProtocol = errors.New("gemini: protocol error")
|
||||
ErrInvalidURL = errors.New("gemini: requested URL is invalid")
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Errors.
|
||||
// Server errors.
|
||||
var (
|
||||
ErrBodyNotAllowed = errors.New("gemini: response status code does not allow for body")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user