send 400 when a bad language was supplied
This commit is contained in:
parent
b0c462d5ee
commit
65151d6f0c
|
@ -113,6 +113,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
|
|||
|
||||
pres, _ := json.Marshal(problem)
|
||||
|
||||
res.WriteHeader(http.StatusBadRequest)
|
||||
res.Write(pres)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue