human
I am working on the file "Putting your model in production.ipynb".
The first task is:
Security
Header tokens
Can you write Python program for it?

Give me a the Python program you requested?
assistant
#Here is the Python program you requested.

from flask import jsonify, request
from flask import Response

class WeiboClassificationResource(Resource):
    
    def post(self):
        auth = request.headers.get('Authorization')
        if auth != 'super-secret-password':
            return Response("", status=401) # HTTP ERROR CODE UNAUTHORIZED