Corrected the response codes for getting resources