I'm very new in using FastAPI and postman. When I am sending a POST request with a body (input data), I'm getting Success code 200 and also intended Response.
Now, I want to tweak my input data to make my code fail intentionally. This is also happening. But the status code is coming to be 500 and Internal Server Error is being displayed in response.
I want to manually give a status code in each case of failure and also some related output in Response. How to achieve this goal?