Added: downloading and returning wikipedia articles
This commit is contained in:
14
api/article/httperror.go
Normal file
14
api/article/httperror.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package article
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"scrap/api/httpio"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrHttpArticleTitleInvalidLength = httpio.HTTPError{
|
||||
StatusCode: http.StatusBadRequest,
|
||||
ErrorCode: "ARTICLE_TITLE_LENGTH",
|
||||
Message: "Invalid title length.",
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user