removing 500 from custom errors