go-jamming/rest/utils.go

15 lines
268 B
Go
Raw Normal View History

package rest
import (
"net/http"
)
func BadRequest(w http.ResponseWriter) {
http.Error(w, "400 bad request", http.StatusBadRequest)
}
func Accept(w http.ResponseWriter) {
w.WriteHeader(202)
2021-04-09 12:40:37 +02:00
w.Write([]byte("Thanks, bro. Will process this soon, pinky swear!"))
}