diff --git a/main.go b/main.go index 9091726..90a382e 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,8 @@ func main() { var p interface{} err := json.NewDecoder(request.Body).Decode(&p) if err != nil { - return "Somethuing go wrong" + writer.WriteHeader(http.StatusInternalServerError) + return } fmt.Println(p) })