fixing status codes for friendController