fix(gorm): updating check for 404