How to Abort Requests in Flask Using HTTP Status Codes

preview_player
Показать описание
Often times a client will make a request that your server can't respond to. In those cases, you'll have to abort the request and pass back the error to the client. In this video, I show you how to do that.

Рекомендации по теме
Комментарии
Автор

Thanks for great video as always! If I am building a restAPI(w/o frontend, just for model serving) I should use error_handler instead of abort to handler exceptions?

haneulkim
welcome to shbcf.ru