From 5e81e945d32d6ff0aa5e4d0f52ca87b5d9e5ec2d Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 16 Nov 2017 22:55:07 +0100 Subject: [PATCH] add empty list response to API doc --- res/template/fragments/api/list-post.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/res/template/fragments/api/list-post.html b/res/template/fragments/api/list-post.html index 150d176..a52be0a 100644 --- a/res/template/fragments/api/list-post.html +++ b/res/template/fragments/api/list-post.html @@ -71,6 +71,13 @@ "value": "description_too_long", "message": "The description of this list or one of the files in the list is too long, max 3000 characters allowed." } + +
HTTP 422: Unprocessable Entity
+{
+	"success": false,
+	"value": "cannot_create_empty_list",
+	"message": "You cannot make a list with no files."
+}