Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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