1
0
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:
adnano 2020-09-25 23:23:24 -04:00
parent 927dfd29c5
commit 1f3587ba9d
2 changed files with 2 additions and 2 deletions

@ -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")
)