def page_not_found(e): error = { 'status' : 'bad requests' } error = json.dumps(error) resp = response(error, status=400, mimetype='application/json') return resp
def page_not_found(e): error = { 'status' : 'methods not allowed' } error = json.dumps(error) resp = response(error, status=405, mimetype='application/json') return resp
def page_not_found(e): error = { 'status' : 'forbidden to access' } error = json.dumps(error) resp = response(error, status=403, mimetype='application/json') return resp
def page_not_found(e): error = { 'status' : 'page not found' } error = json.dumps(error) resp = response(error, status=404, mimetype='application/json') return resp
def page_not_found(e): error = { 'status' : 'bad password or username' } error = json.dumps(error) resp = response(error, status=401, mimetype='application/json') return resp