We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfeb588 commit 6129482Copy full SHA for 6129482
litestar/handlers/http_handlers/base.py
@@ -610,7 +610,7 @@ def _validate_handler_function(self) -> None:
610
) and not is_empty_response_annotation(return_type):
611
raise ImproperlyConfiguredException(
612
"A status code 204, 304 or in the range below 200 does not support a response body. "
613
- "If the function should return a value, change the route handler status code to an appropriate value.",
+ f"If {self} should return a value, change the route handler status code to an appropriate value.",
614
)
615
616
if not self.media_type:
0 commit comments