404 and 500 http errors handlers added for class based views