change to 404
This commit is contained in:
parent
b4956ca703
commit
5dd63c90fb
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -84,7 +84,7 @@ func main() {
|
||||||
if val, ok := routes[route]; ok {
|
if val, ok := routes[route]; ok {
|
||||||
writePageGo(w, req.Host+route, val, 200)
|
writePageGo(w, req.Host+route, val, 200)
|
||||||
} else {
|
} else {
|
||||||
writePageError(w, ":(", 401)
|
writePageError(w, ":(", 404)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
http.ListenAndServe(":8000", mux)
|
http.ListenAndServe(":8000", mux)
|
||||||
|
|
Loading…
Reference in a new issue