Changed JSONBadRequest to APIBadRequest in tentd/blueprints/entity.py