MCPcopy Create free account
hub / github.com/pallets/flask / handle_http

Method handle_http

tests/test_user_error_handler.py:275–277  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

273
274 @app.errorhandler(HTTPException)
275 def handle_http(e):
276 assert isinstance(e, HTTPException)
277 return str(e.code)
278
279 assert client.get("/error").data == b"500"
280 assert client.get("/abort").data == b"500"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected