Add method getError to ApiResponse