fix problem with incorrect http response when table 404's