How Return HTTP status code 201 in Flask?

from flask import Flask, Response, request
  
app =   Flask(__name__)
  
@app.route('/user', methods = ['GET'])
def get_user():
    if(request.method == 'GET'):
        data = {
            "name" :"Peter A",
            "email" : "test@pond.com"
        }
  
        return Response(data, status=201, mimetype='application/json')
  
if __name__=='__main__':
    app.run(debug=True)