Error handle
-
FastAPI에서 handling error - exception 정의 및 적용Backend/FastAPI 2023. 6. 26. 18:26
필자는 error를 처리하는데 있어서, HTTPStatus library를 사용했음! 여기서, Error Handling 이란? - 웹 서버를 안정적으로 운영하기 위해 반드시 필요한 주제 - 서버에서 error가 발생했을 때, 어떤 error(즉 status code) 및 설명이 꼭 필요 ☞ 따라서 여러 라이브러리 및 도구를 활용하여 Error log 수집 및 관리의 중요성! 아래와 같이 공식 문서를 꼭 읽어보는 것을 추천! 공식 문서 : https://fastapi.tiangolo.com/tutorial/handling-errors/ Handling Errors - FastAPI Handling Errors There are many situations in where you need to notify..