This class should handle API errors (but not yet :P )