Add error handling
Add dependency injection of my http handler function