apollo-backend/cmd/apollo-api/errors.go

9 lines
192 B
Go
Raw Normal View History

2021-05-10 00:51:15 +00:00
package main
import "net/http"
func (app *application) errorResponse(w http.ResponseWriter, r *http.Request, status int, message string) {
w.WriteHeader(status)
w.Write([]byte(message))
}