From fc10a16a428ddfaaa4cd8d7455537590ecd49e7b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 13 Dec 2015 06:48:22 +0100 Subject: improved HTTP status code diff --git a/src/helsinki.at/rhimportd/ctrlWebSimple.go b/src/helsinki.at/rhimportd/ctrlWebSimple.go index 5e12df5..40fe808 100644 --- a/src/helsinki.at/rhimportd/ctrlWebSimple.go +++ b/src/helsinki.at/rhimportd/ctrlWebSimple.go @@ -103,7 +103,7 @@ func webSimpleHandler(conf *rhimport.Config, rddb *rhimport.RdDb, trusted bool, var ctx *rhimport.ImportContext var err error if ctx, err = webSimpleParseRequest(conf, rddb, trusted, r); err != nil { - webSimpleErrorResponse(w, http.StatusInternalServerError, err.Error()) + webSimpleErrorResponse(w, http.StatusBadRequest, err.Error()) return } -- cgit v0.10.2