public static function delete($cod_regime_especial) { $RegimeEspecialDao = new RegimeEspecialDao(); if (is_numeric($cod_regime_especial)) { if ($RegimeEspecialDao->delete($cod_regime_especial)) { Flight::halt(200, ''); } else { Flight::halt(500, 'erro ao excluir'); } } else { Flight::halt(406, 'parametro recusado'); } }