summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-12-13 05:48:22 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-12-13 05:48:22 (GMT)
commitfc10a16a428ddfaaa4cd8d7455537590ecd49e7b (patch)
treea8baf12e037bfe178c6912cd1b72d31d4ba182d0
parente9ffae4f5f6858a3736136009aff87cb9369a4c1 (diff)
improved HTTP status code
-rw-r--r--src/helsinki.at/rhimportd/ctrlWebSimple.go2
1 files changed, 1 insertions, 1 deletions
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
}