added check for correct statuscode when downloading boilerplate