コード例 #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())