Change status code to 204 when there is no content in response.

This commit is contained in:
Rebecca Law
2018-11-09 14:55:19 +00:00
parent 98de2591a7
commit 64f7f4c302
2 changed files with 10 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
from flask import Blueprint, jsonify, request, abort, current_app
from flask import Blueprint, jsonify, request, current_app
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm.exc import NoResultFound
@@ -145,4 +145,4 @@ def move_to_template_folder(service_id, target_template_folder_id=None):
))
else:
template.folder = target_template_folder
return '', 200
return '', 204