Add error handling to service-dates endpoint