prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  FastAPI exceptions module mistakenly references the 'requests' package
  **Describe the bug**
  Starting up a FastAPI 0.38.0 app displays the following error:
  
  ```python
  from fastapi import FastAPI
    File ".../lib/site-packages/fastapi/__init__.py", line 7, in <module>
      from .applications import FastAPI
    File ".../lib/site-packages/fastapi/applications.py", line 3, in <module>
      from fastapi import routing
    File ".../lib/site-packages/fastapi/routing.py", line 7, in <module>
      from fastapi.dependencies.models import Dependant
    File ".../lib/site-packages/fastapi/dependencies/models.py", line 3, in <module>
      from fastapi.security.base import SecurityBase
    File ".../lib/site-packages/fastapi/security/__init__.py", line 2, in <module>
      from .http import (
    File ".../lib/site-packages/fastapi/security/http.py", line 5, in <module>
      from fastapi.exceptions import HTTPException
    File ".../lib/site-packages/fastapi/exceptions.py", line 5, in <module>
      from requests import Request
  ModuleNotFoundError: No module named 'requests'
  ```
  
  **Expected behavior**
  The app should start without import errors.
  
  **Environment:**
   - OS: Linux, Windows, and macOS
   - FastAPI Version: 0.38.0
  
  **Additional context**
  It's likely the `from requests import Request` should be replaced with `from starlette.requests import Request` in line 5 of `fastapi/exceptions.py`
  FastAPI exceptions module mistakenly references the 'requests' package
  **Describe the bug**
  Starting up a FastAPI 0.38.0 app displays the following error:
  
  ```python
  from fastapi import FastAPI
    File ".../lib/site-packages/fastapi/__init__.py", line 7, in <module>
      from .applications import FastAPI
    File ".../lib/site-packages/fastapi/applications.py", line 3, in <module>
      from fastapi import routing
    File ".../lib/site-packages/fastapi/routing.py", line 7, in <module>
      from fastapi.dependencies.models import Dependant
    File ".../lib/site-packages/fastapi/dependencies/models.py", line 3, in <module>
      from fastapi.security.base import SecurityBase
    File ".../lib/site-packages/fastapi/security/__init__.py", line 2, in <module>
      from .http import (
    File ".../lib/site-packages/fastapi/security/http.py", line 5, in <module>
      from fastapi.exceptions import HTTPException
    File ".../lib/site-packages/fastapi/exceptions.py", line 5, in <module>
      from requests import Request
  ModuleNotFoundError: No module named 'requests'
  ```
  
  **Expected behavior**
  The app should start without import errors.
  
  **Environment:**
   - OS: Linux, Windows, and macOS
   - FastAPI Version: 0.38.0
  
  **Additional context**
  It's likely the `from requests import Request` should be replaced with `from starlette.requests import Request` in line 5 of `fastapi/exceptions.py`
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `fastapi/exceptions.py`
  Content:
  ```
  1 from typing import Any, Sequence
  2 
  3 from pydantic import ValidationError
  4 from pydantic.error_wrappers import ErrorList
  5 from requests import Request
  6 from starlette.exceptions import HTTPException as StarletteHTTPException
  7 from starlette.websockets import WebSocket
  8 
  9 
  10 class HTTPException(StarletteHTTPException):
  11     def __init__(
  12         self, status_code: int, detail: Any = None, headers: dict = None
  13     ) -> None:
  14         super().__init__(status_code=status_code, detail=detail)
  15         self.headers = headers
  16 
  17 
  18 class RequestValidationError(ValidationError):
  19     def __init__(self, errors: Sequence[ErrorList]) -> None:
  20         super().__init__(errors, Request)
  21 
  22 
  23 class WebSocketRequestValidationError(ValidationError):
  24     def __init__(self, errors: Sequence[ErrorList]) -> None:
  25         super().__init__(errors, WebSocket)
  26
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/fastapi/exceptions.py b/fastapi/exceptions.py
  --- a/fastapi/exceptions.py
  +++ b/fastapi/exceptions.py
  @@ -2,8 +2,8 @@
   
   from pydantic import ValidationError
   from pydantic.error_wrappers import ErrorList
  -from requests import Request
   from starlette.exceptions import HTTPException as StarletteHTTPException
  +from starlette.requests import Request
   from starlette.websockets import WebSocket
  
verification_info: {"golden_diff": "diff --git a/fastapi/exceptions.py b/fastapi/exceptions.py\n--- a/fastapi/exceptions.py\n+++ b/fastapi/exceptions.py\n@@ -2,8 +2,8 @@\n \n from pydantic import ValidationError\n from pydantic.error_wrappers import ErrorList\n-from requests import Request\n from starlette.exceptions import HTTPException as StarletteHTTPException\n+from starlette.requests import Request\n from starlette.websockets import WebSocket\n", "issue": "FastAPI exceptions module mistakenly references the 'requests' package\n**Describe the bug**\r\nStarting up a FastAPI 0.38.0 app displays the following error:\r\n\r\n```python\r\nfrom fastapi import FastAPI\r\n  File \".../lib/site-packages/fastapi/__init__.py\", line 7, in <module>\r\n    from .applications import FastAPI\r\n  File \".../lib/site-packages/fastapi/applications.py\", line 3, in <module>\r\n    from fastapi import routing\r\n  File \".../lib/site-packages/fastapi/routing.py\", line 7, in <module>\r\n    from fastapi.dependencies.models import Dependant\r\n  File \".../lib/site-packages/fastapi/dependencies/models.py\", line 3, in <module>\r\n    from fastapi.security.base import SecurityBase\r\n  File \".../lib/site-packages/fastapi/security/__init__.py\", line 2, in <module>\r\n    from .http import (\r\n  File \".../lib/site-packages/fastapi/security/http.py\", line 5, in <module>\r\n    from fastapi.exceptions import HTTPException\r\n  File \".../lib/site-packages/fastapi/exceptions.py\", line 5, in <module>\r\n    from requests import Request\r\nModuleNotFoundError: No module named 'requests'\r\n```\r\n\r\n**Expected behavior**\r\nThe app should start without import errors.\r\n\r\n**Environment:**\r\n - OS: Linux, Windows, and macOS\r\n - FastAPI Version: 0.38.0\r\n\r\n**Additional context**\r\nIt's likely the `from requests import Request` should be replaced with `from starlette.requests import Request` in line 5 of `fastapi/exceptions.py`\nFastAPI exceptions module mistakenly references the 'requests' package\n**Describe the bug**\r\nStarting up a FastAPI 0.38.0 app displays the following error:\r\n\r\n```python\r\nfrom fastapi import FastAPI\r\n  File \".../lib/site-packages/fastapi/__init__.py\", line 7, in <module>\r\n    from .applications import FastAPI\r\n  File \".../lib/site-packages/fastapi/applications.py\", line 3, in <module>\r\n    from fastapi import routing\r\n  File \".../lib/site-packages/fastapi/routing.py\", line 7, in <module>\r\n    from fastapi.dependencies.models import Dependant\r\n  File \".../lib/site-packages/fastapi/dependencies/models.py\", line 3, in <module>\r\n    from fastapi.security.base import SecurityBase\r\n  File \".../lib/site-packages/fastapi/security/__init__.py\", line 2, in <module>\r\n    from .http import (\r\n  File \".../lib/site-packages/fastapi/security/http.py\", line 5, in <module>\r\n    from fastapi.exceptions import HTTPException\r\n  File \".../lib/site-packages/fastapi/exceptions.py\", line 5, in <module>\r\n    from requests import Request\r\nModuleNotFoundError: No module named 'requests'\r\n```\r\n\r\n**Expected behavior**\r\nThe app should start without import errors.\r\n\r\n**Environment:**\r\n - OS: Linux, Windows, and macOS\r\n - FastAPI Version: 0.38.0\r\n\r\n**Additional context**\r\nIt's likely the `from requests import Request` should be replaced with `from starlette.requests import Request` in line 5 of `fastapi/exceptions.py`\n", "before_files": [{"content": "from typing import Any, Sequence\n\nfrom pydantic import ValidationError\nfrom pydantic.error_wrappers import ErrorList\nfrom requests import Request\nfrom starlette.exceptions import HTTPException as StarletteHTTPException\nfrom starlette.websockets import WebSocket\n\n\nclass HTTPException(StarletteHTTPException):\n    def __init__(\n        self, status_code: int, detail: Any = None, headers: dict = None\n    ) -> None:\n        super().__init__(status_code=status_code, detail=detail)\n        self.headers = headers\n\n\nclass RequestValidationError(ValidationError):\n    def __init__(self, errors: Sequence[ErrorList]) -> None:\n        super().__init__(errors, Request)\n\n\nclass WebSocketRequestValidationError(ValidationError):\n    def __init__(self, errors: Sequence[ErrorList]) -> None:\n        super().__init__(errors, WebSocket)\n", "path": "fastapi/exceptions.py"}], "after_files": [{"content": "from typing import Any, Sequence\n\nfrom pydantic import ValidationError\nfrom pydantic.error_wrappers import ErrorList\nfrom starlette.exceptions import HTTPException as StarletteHTTPException\nfrom starlette.requests import Request\nfrom starlette.websockets import WebSocket\n\n\nclass HTTPException(StarletteHTTPException):\n    def __init__(\n        self, status_code: int, detail: Any = None, headers: dict = None\n    ) -> None:\n        super().__init__(status_code=status_code, detail=detail)\n        self.headers = headers\n\n\nclass RequestValidationError(ValidationError):\n    def __init__(self, errors: Sequence[ErrorList]) -> None:\n        super().__init__(errors, Request)\n\n\nclass WebSocketRequestValidationError(ValidationError):\n    def __init__(self, errors: Sequence[ErrorList]) -> None:\n        super().__init__(errors, WebSocket)\n", "path": "fastapi/exceptions.py"}]}