forked from toolshed/coop-cloud-backend
13 lines
354 B
Go
13 lines
354 B
Go
package api
|
|
import (
|
|
"net/http"
|
|
)
|
|
func InternalServerErrorHandler(w http.ResponseWriter, r *http.Request) {
|
|
w.WriteHeader(http.StatusInternalServerError)
|
|
w.Write([]byte("500 Internal Server Error"))
|
|
}
|
|
|
|
func NotFoundHandler(w http.ResponseWriter, r *http.Request) {
|
|
w.WriteHeader(http.StatusNotFound)
|
|
w.Write([]byte("404 Not Found"))
|
|
} |