#342: added JavaDocs and now checking that the status code is an actual redirect one