Atmel USB sends STALL packet after 1 minute
Events such as NAK, ACK, STALL... are issued by SIE (Serial Interface Engine) of the USB controller. So you will not be able to find it in the source code or Technical reference manual of the device.