From 65151d6f0ce538b4fb25477784783b07ffaedc25 Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Mon, 11 Jan 2021 13:24:17 -0600 Subject: [PATCH] send 400 when a bad language was supplied --- api/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/main.go b/api/main.go index 51741d6..acd0f69 100644 --- a/api/main.go +++ b/api/main.go @@ -113,6 +113,7 @@ func Execute(res http.ResponseWriter, req *http.Request) { pres, _ := json.Marshal(problem) + res.WriteHeader(http.StatusBadRequest) res.Write(pres) }