From 819d8af4f57e78724a2de02707bd4883715763bc Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Wed, 15 Apr 2020 19:08:03 +0200 Subject: Implement FillWithMatchedRules --- routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes.go') 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{}) { -- cgit v1.2.3-70-g09d2