def hello() -> Response: print(request.headers) return Response("Hello World!!")
def delete_task(task_id: int): if not task_service.delete_task(task_id): raise HTTPError("Task is not found.", 404) return Response('', status=204)
def dummy_func(): return Response('hello')
def raise500(typed_id: int): 1 / 0 return Response("Don't reach here")
def top(): return Response('Hello')
def typed_url_var(typed_id: int): body = "type: {}, value: {}".format(type(typed_id), typed_id) return Response(body)