aboutsummaryrefslogtreecommitdiff
path: root/routes.go
diff options
context:
space:
mode:
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{}) {