Added a Redirect response.
Added the redirect response to the example.
Added an error check on the response write.