Added else case and status 302  for request type check