Quiz: What exception class should be raised in FastAPI to return specific HTTP error responses to clients?
Raising HTTPException allows returning structured JSON error payloads with custom HTTP status codes.
Find tutorials, system documentation, dynamic pages, and interactive quizzes in one place.
Raising HTTPException allows returning structured JSON error payloads with custom HTTP status codes.
FastAPI includes Starlette's CORSMiddleware to manage cross-origin headers and preflight handling.
Setting status_code on path operation decorators sets default HTTP response status codes.
A Docker Image is a immutable layered snapshot; a Container is an active runtime instance executing that image.
ENTRYPOINT specifies the container executable, while CMD provides default arguments that can easily be overridden.
EXPOSE documents intended container ports; -p (port publishing) maps actual host network sockets to container ports.
Exit code 137 occurs when container memory usage exceeds cgroup limits, causing kernel OOM killer termination.
EC2 Instance Profiles attach IAM Roles to instances, issuing short-lived credentials via metadata service.