Week 16 • Wednesday

Block 156: Error Handling & Graceful Degradation

Make your project robust against bad inputs and missing data.

Concepts

Code Examples

See exercise below.

Exercise

Deliberately pass bad input to your API or functions. Verify every error is caught and returns a clear message. Add a 'health check' endpoint or function that verifies all dependencies are available.

Homework

List 5 ways your project could fail in production. For each, describe what happens now and what should happen. Thursday