Skip to content

Commit a538d97

Browse files
authored
Update notes.py
Match 204 status with swagger.yml
1 parent a68d17b commit a538d97

File tree

1 file changed

+1
-1
lines changed
  • flask-connexion-rest-part-3/rp_flask_api

1 file changed

+1
-1
lines changed

flask-connexion-rest-part-3/rp_flask_api/notes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def delete(note_id):
3232
if existing_note:
3333
db.session.delete(existing_note)
3434
db.session.commit()
35-
return make_response(f"{note_id} successfully deleted", 200)
35+
return make_response(f"{note_id} successfully deleted", 204)
3636
else:
3737
abort(404, f"Note with ID {note_id} not found")
3838

0 commit comments

Comments
 (0)