Fixed formatting issues, factored out weird check for status codes into inner method
More formatting issues, changed variable names in bolding fun