예제 #1
0
def not_found(error):
	ex = JsonException(404, error.description)
	return json.dumps(ex.serialize())
예제 #2
0
def not_allowed(error):
	ex = JsonException(405, error.description)
	return json.dumps(ex.serialize())