added header method to redirect response.