added http response code and caching to maintenance functionality