First you have to check why the application was rejected in the first place. If necessary you have to go to the captain on the first floor of the Emigration office.