R

Ravina • 3.96K Points
Extraordinary

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

  • (A) RequestError
  • (B) FastAPIError
  • (C) HTTPException
  • (D) ValidationException
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`HTTPException` is the standard way to raise HTTP errors with status codes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.