diff --git a/sanic/response.py b/sanic/response.py index c129884f..38cd68db 100644 --- a/sanic/response.py +++ b/sanic/response.py @@ -331,7 +331,7 @@ def stream( :param headers: Custom Headers. """ return StreamingHTTPResponse( - streaming_fn, headers=headers, content_type=content_type, status=200) + streaming_fn, headers=headers, content_type=content_type, status=status) def redirect(to, headers=None, status=302,