mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-23 20:27:42 +00:00
8 lines
181 B
Go
8 lines
181 B
Go
package api
|
|
|
|
import "net/http"
|
|
|
|
func (a *api) errorResponse(w http.ResponseWriter, r *http.Request, status int, message string) {
|
|
w.WriteHeader(status)
|
|
w.Write([]byte(message))
|
|
}
|