diff options
author | Emiliano Ciavatta | 2020-04-15 17:08:03 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-04-15 17:08:03 +0000 |
commit | 819d8af4f57e78724a2de02707bd4883715763bc (patch) | |
tree | 4db8833a9c8f0a157e65dbefdedda188d536486c /routes.go | |
parent | a32ff72dfe0c2aba3e51bd9536d5e11a30a9d73d (diff) |
Implement FillWithMatchedRules
Diffstat (limited to 'routes.go')
-rw-r--r-- | routes.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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{}) { |