using LRUtils to handle all http errors and after_request headers