Ejemplo n.º 1
0
def page_not_found(e):
	error = { 'status' : 'bad requests' }
	error = json.dumps(error)
	resp = response(error, status=400, mimetype='application/json')
	return resp
Ejemplo n.º 2
0
def page_not_found(e):
	error = { 'status' : 'methods not allowed' }
	error = json.dumps(error)
	resp = response(error, status=405, mimetype='application/json')
	return resp
Ejemplo n.º 3
0
def page_not_found(e):
	error = { 'status' : 'forbidden to access' }
	error = json.dumps(error)
	resp = response(error, status=403, mimetype='application/json')
	return resp
Ejemplo n.º 4
0
def page_not_found(e):
	error = { 'status' : 'page not found' }
	error = json.dumps(error)
	resp = response(error, status=404, mimetype='application/json')
	return resp
Ejemplo n.º 5
0
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