DoesNotExists -> DoesNotExist
Use flask.json instead of standard json.