Centralized the error response logic in the admin and teacher course creation routes by integrating a custom handleError utility. This replaces manual 500 status returns, ensuring consistent and cleaner error reporting across the platform. Centralized Error Handling

Standardized error handling for course management APIs - subh05sus/sparkmentis-fork