Ejemplo n.º 1
0
def not_found(error):
	ex = JsonException(404, error.description)
	return json.dumps(ex.serialize())
Ejemplo n.º 2
0
def not_allowed(error):
	ex = JsonException(405, error.description)
	return json.dumps(ex.serialize())