error.go

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