Created HttpErrorGenerator class