def not_found(error): ex = JsonException(404, error.description) return json.dumps(ex.serialize())
def not_allowed(error): ex = JsonException(405, error.description) return json.dumps(ex.serialize())