mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-16 00:46:43 +00:00
18 lines
265 B
Go
18 lines
265 B
Go
package main
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
var ErrRateLimit = errors.New("too many requests")
|
|
var ErrKnown = errors.New("already crawled")
|
|
|
|
type HttpError struct {
|
|
code int
|
|
}
|
|
|
|
func (e HttpError) Error() string {
|
|
return fmt.Sprintf("http status %d", e.code)
|
|
}
|