1package git
2
3import "errors"
4
5var (
6 // ErrNotAuthed represents unauthorized access.
7 ErrNotAuthed = errors.New("you are not authorized to do this")
8
9 // ErrSystemMalfunction represents a general system error returned to clients.
10 ErrSystemMalfunction = errors.New("something went wrong")
11
12 // ErrInvalidRepo represents an attempt to access a non-existent repo.
13 ErrInvalidRepo = errors.New("invalid repo")
14
15 // ErrInvalidRequest represents an invalid request.
16 ErrInvalidRequest = errors.New("invalid request")
17
18 // ErrMaxConnections represents a maximum connection limit being reached.
19 ErrMaxConnections = errors.New("too many connections, try again later")
20
21 // ErrTimeout is returned when the maximum read timeout is exceeded.
22 ErrTimeout = errors.New("I/O timeout reached")
23)