S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which HTTP exception class is used in FastAPI to raise errors?

  • (A) HTTPResponse
  • (B) HTTPException
  • (C) BadRequest
  • (D) FastAPIError
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey
`HTTPException` is used to return custom error messages and status codes in FastAPI.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.