This repository has been archived on 2022-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
snoo2nebby/vendor/github.com/turnage/graw/reddit/errors.go

15 lines
467 B
Go

package reddit
import (
"fmt"
)
var (
PermissionDeniedErr = fmt.Errorf("unauthorized access to endpoint")
BusyErr = fmt.Errorf("Reddit is busy right now")
RateLimitErr = fmt.Errorf("Reddit is rate limiting requests")
GatewayErr = fmt.Errorf("502 bad gateway code from Reddit")
GatewayTimeoutErr = fmt.Errorf("504 gateway timeout from Reddit")
ThreadDoesNotExistErr = fmt.Errorf("The requested post does not exist.")
)