They will be fine for 2 weeks.
If you have time before you go, feed them more often (3-5 times a day) for a few weeks. This will allow them to build up some fat reserves and they can live off that while you're away.
Do more frequent water changes and gravel cleaning if you feed them more often to keep the aquarium clean.
Make sure any new water is free of chlorine/ chloramine before it's added to the tank.
Clean the filter a few days before you go so there is less chance of it blocking up while you're away. Wash filter media/ materials in a bucket of tank water and re-use the media. tip the bucket of dirty water on the lawn.
Feed the fish normally just before you go and they will be waiting for you when you get home.
Have the light on a timer and increase the photoperiod a bit to encourage algae. If worse comes to worse, the fish can eat the algae. Lights can be on for up to 16 hours per day. You can reduce it when you get back.