apollo-backend/internal/api/errors.go

9 lines
181 B
Go
Raw Normal View History

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