Retirement tax questions

It was a loan on my 401K through my employer. I am paying it back including interest over the five years that it was taken for. I'm pretty sure its considered a loan but I will definitely keep an eye out just in case for that form. Thanks.