Changed hard coded value to Response class constant (302)

Replaced hard coded parameter value (code = 302) in redirect method by its equivalent value in Response object constants