Make responce codes uniform (#8865)

* Fix 201 responce wrong documentation

* Fix 201 in challenges

* Fix 201 in groups.js

* Fix 201 in tags.js

* Fix 201 in webhooks.js
This commit is contained in:
Pavel Pletenev
2017-07-18 01:28:25 +04:00
committed by Sabe Jones
parent 5f3539da19
commit 0da1144635
5 changed files with 13 additions and 13 deletions

View File

@@ -83,7 +83,7 @@ let api = {};
* @apiError (400) {NotAuthorized} partyMustbePrivate Party must have privacy set to private
* @apiError (400) {NotAuthorized} messageGroupAlreadyInParty
*
* @apiSuccess {Object} data The created group (See <a href="https://github.com/HabitRPG/habitica/blob/develop/website/server/models/group.js" target="_blank">/website/server/models/group.js</a>)
* @apiSuccess (201) {Object} data The created group (See <a href="https://github.com/HabitRPG/habitica/blob/develop/website/server/models/group.js" target="_blank">/website/server/models/group.js</a>)
*
* @apiSuccessExample {json} Private Guild:
* HTTP/1.1 200 OK
@@ -174,7 +174,7 @@ api.createGroup = {
* @apiName CreateGroupPlan
* @apiGroup Group
*
* @apiSuccess {Object} data The created group
* @apiSuccess (201) {Object} data The created group
*/
api.createGroupPlan = {
method: 'POST',