8 lines
207 B
Python
8 lines
207 B
Python
|
from typing import Tuple
|
||
|
|
||
|
from werkzeug.exceptions import RequestEntityTooLarge
|
||
|
|
||
|
|
||
|
def request_entity_too_large(error: RequestEntityTooLarge) -> Tuple[dict, int]:
|
||
|
return {'error': 'File too large!'}, 413
|