Controller Handling Service Errors In Python