Пример #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())