diff --git a/falcon/__init__.py b/falcon/__init__.py index 093c56e03..4a38d9a95 100644 --- a/falcon/__init__.py +++ b/falcon/__init__.py @@ -355,6 +355,7 @@ from falcon.errors import HTTPBadGateway from falcon.errors import HTTPBadRequest from falcon.errors import HTTPConflict +from falcon.errors import HTTPContentTooLarge from falcon.errors import HTTPFailedDependency from falcon.errors import HTTPForbidden from falcon.errors import HTTPGatewayTimeout @@ -373,7 +374,6 @@ from falcon.errors import HTTPNotAcceptable from falcon.errors import HTTPNotFound from falcon.errors import HTTPNotImplemented -from falcon.errors import HTTPContentTooLarge from falcon.errors import HTTPPreconditionFailed from falcon.errors import HTTPPreconditionRequired from falcon.errors import HTTPRangeNotSatisfiable @@ -530,6 +530,7 @@ from falcon.status_codes import HTTP_BAD_GATEWAY from falcon.status_codes import HTTP_BAD_REQUEST from falcon.status_codes import HTTP_CONFLICT +from falcon.status_codes import HTTP_CONTENT_TOO_LARGE from falcon.status_codes import HTTP_CONTINUE from falcon.status_codes import HTTP_CREATED from falcon.status_codes import HTTP_EARLY_HINTS @@ -568,7 +569,6 @@ from falcon.status_codes import HTTP_PRECONDITION_REQUIRED from falcon.status_codes import HTTP_PROCESSING from falcon.status_codes import HTTP_PROXY_AUTHENTICATION_REQUIRED -from falcon.status_codes import HTTP_REQUEST_ENTITY_TOO_LARGE from falcon.status_codes import HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE from falcon.status_codes import HTTP_REQUEST_TIMEOUT from falcon.status_codes import HTTP_REQUEST_URI_TOO_LONG diff --git a/falcon/status_codes.py b/falcon/status_codes.py index b7e7b76a6..eac36aaff 100644 --- a/falcon/status_codes.py +++ b/falcon/status_codes.py @@ -95,6 +95,7 @@ HTTP_PRECONDITION_FAILED: Final[str] = HTTP_412 HTTP_413: Final[str] = '413 Content Too Large' HTTP_CONTENT_TOO_LARGE: Final[str] = HTTP_413 +HTTP_REQUEST_ENTITY_TOO_LARGE: Final[str] = HTTP_413 HTTP_414: Final[str] = '414 URI Too Long' HTTP_REQUEST_URI_TOO_LONG: Final[str] = HTTP_414 HTTP_415: Final[str] = '415 Unsupported Media Type' @@ -330,6 +331,7 @@ 'HTTP_BAD_GATEWAY', 'HTTP_BAD_REQUEST', 'HTTP_CONFLICT', + 'HTTP_CONTENT_TOO_LARGE', 'HTTP_CONTINUE', 'HTTP_CREATED', 'HTTP_EARLY_HINTS', @@ -369,7 +371,6 @@ 'HTTP_PROCESSING', 'HTTP_PROXY_AUTHENTICATION_REQUIRED', 'HTTP_REQUESTED_RANGE_NOT_SATISFIABLE', - 'HTTP_REQUEST_ENTITY_TOO_LARGE', 'HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE', 'HTTP_REQUEST_TIMEOUT', 'HTTP_REQUEST_URI_TOO_LONG',