Python - Custom Exceptions
You want a custom exception
ApiError that stores an error code and message, and returns a string like 'Error 404: Not Found' when printed. Which implementation is best?