diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-12-13 05:48:22 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-12-13 05:48:22 (GMT) |
commit | fc10a16a428ddfaaa4cd8d7455537590ecd49e7b (patch) | |
tree | a8baf12e037bfe178c6912cd1b72d31d4ba182d0 /src | |
parent | e9ffae4f5f6858a3736136009aff87cb9369a4c1 (diff) |
improved HTTP status code
Diffstat (limited to 'src')
-rw-r--r-- | src/helsinki.at/rhimportd/ctrlWebSimple.go | 2 |
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 } |