use restkit's ApiError for error handling