mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-10 22:17:44 +00:00
8 lines
192 B
Go
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))
|
|
}
|