Files
coop-cloud-wizard/api/error.go
2026-01-17 19:09:04 -08:00

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"))
}