in reference-api/sources/github/github.go [27:33]
func errorEncoder(w http.ResponseWriter, status int, message string) {
w.WriteHeader(status)
err := json.NewEncoder(w).Encode(ErrorResponse{Error: message})
if err != nil {
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
}
}