apollo-backend/cmd/apollo-api/errors.go
Andre Medeiros 7fad5ac9e4 initial pass
2021-05-09 20:51:15 -04:00

8 lines
192 B
Go

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