aboutsummaryrefslogtreecommitdiff
path: root/routes.go
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-04-15 17:08:03 +0000
committerEmiliano Ciavatta2020-04-15 17:08:03 +0000
commit819d8af4f57e78724a2de02707bd4883715763bc (patch)
tree4db8833a9c8f0a157e65dbefdedda188d536486c /routes.go
parenta32ff72dfe0c2aba3e51bd9536d5e11a30a9d73d (diff)
Implement FillWithMatchedRules
Diffstat (limited to 'routes.go')
-rw-r--r--routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes.go b/routes.go
index 4599b8f..b628a9c 100644
--- a/routes.go
+++ b/routes.go
@@ -95,7 +95,7 @@ func badRequest(c *gin.Context, err error) {
}
func unprocessableEntity(c *gin.Context, err error) {
- c.JSON(http.StatusOK, UnorderedDocument{"result": "error", "error": err.Error()})
+ c.JSON(http.StatusUnprocessableEntity, UnorderedDocument{"result": "error", "error": err.Error()})
}
func notFound(c *gin.Context, obj interface{}) {